Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I make this Youtube Video clickable (css + z-index)?
    primarykey
    data
    text
    <p>I want the Youtube video to be a background wallpaper, but I still want it to be interactive. i.e. the user can pause the video by clicking on it.</p> <p>Right now, I've set the iframe to be z-index of -99. For some reason,I can't click on it! After inspecting it with Firebug, it seems that <strong>body</strong> covers the iframe. (The only way to click on it is if you scroll down to the bottom, where body ends and the iframe is revealed.</p> <p>Is there any way to make this iframe clickable without changing everything's else around? Right now, my main website, things have default z-indexes. I don't want to make them all to be "2" just so I can make the iframe "1"</p> <p>Note: You can't stick this code in jsfiddle. (It won't work because of jsfiddle's frame.)</p> <pre><code>&lt;style&gt; body{ padding:0px; margin:0px; } iframe{ width:100%; height:100%; position:fixed; top:0px; left:0px; z-index:-99; } .go{ color:#fff; position:relative; margin-top:50px; } &lt;/style&gt; &lt;script src="http://code.jquery.com/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;iframe id='youtube_bg' class="youtube-player" type="text/html" src="http://www.youtube.com/embed/lUjWJSnGVB0?wmode=opaque&amp;autohide=1&amp;autoplay=1&amp;enablejsapi=1" frameborder="0"&gt;&amp;lt;br /&amp;gt;&lt;/iframe&gt; &lt;div class="go"&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;h1&gt;hahaihaahahaha&lt;/h1&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload