Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

Facebook: Z-index issue on like button/box

1
2
3
4
5
6
A lot of people talk about some overflow:hidden property on the parent to remove.
I did have this property but changing it didn't help me a bit.

In my case, my social bar was position:fixed on the left of my content. So the only thing which helped me was to add a z-index: 9999 to my fixed div

Hope this will help someone.
https://snipt.net/embed/f5484719ec7591dda9dd4ba47d15c1e0/
https://snipt.net/raw/f5484719ec7591dda9dd4ba47d15c1e0/
f5484719ec7591dda9dd4ba47d15c1e0
text
Text only
6
2016-11-30T01:43:25
True
False
True
May 03, 2013 at 06:18 AM
/api/public/snipt/60545/
facebook-z-index-issue-on-like-buttonbox
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>A lot of people talk about some overflow:hidden property on the parent to remove. </span><span id="L-2"><a name="L-2"></a>I did have this property but changing it didn&#39;t help me a bit. </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>In my case, my social bar was position:fixed on the left of my content. So the only thing which helped me was to add a z-index: 9999 to my fixed div </span><span id="L-5"><a name="L-5"></a> </span><span id="L-6"><a name="L-6"></a>Hope this will help someone. </span></pre></div> </td></tr></table>
facebook, like, z-index

MySQL

CONCAT, SUBSTRING_INDEX and LIKE example

-- example SQL for substrings and concatenation
UPDATE url_alias SET keyword = CONCAT(keyword, '-', SUBSTRING_INDEX(query, '=', -1)) WHERE query LIKE 'category_id%';
https://snipt.net/embed/8d34e2ad7d236e728e7668cbf915e84c/
https://snipt.net/raw/8d34e2ad7d236e728e7668cbf915e84c/
8d34e2ad7d236e728e7668cbf915e84c
mysql
MySQL
2
2016-12-02T12:23:25
True
False
False
/api/public/snipt/22995/
concat-and-substring_index-example
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">-- example SQL for substrings and concatenation</span> </span><span id="L-2"><a name="L-2"></a><span class="k">UPDATE</span> <span class="n">url_alias</span> <span class="kt">SET</span> <span class="n">keyword</span> <span class="o">=</span> <span class="nf">CONCAT</span><span class="p">(</span><span class="n">keyword</span><span class="p">,</span> <span class="s1">&#39;-&#39;</span><span class="p">,</span> <span class="nf">SUBSTRING_INDEX</span><span class="p">(</span><span class="n">query</span><span class="p">,</span> <span class="s1">&#39;=&#39;</span><span class="p">,</span> <span class="o">-</span><span class="mi">1</span><span class="p">))</span> <span class="k">WHERE</span> <span class="n">query</span> <span class="k">LIKE</span> <span class="s1">&#39;category_id%&#39;</span><span class="p">;</span> </span></pre></div> </td></tr></table>
concatenation, like, mysql, substring
Copyrighted, illegal, or inappropriate content? Email [email protected].