Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox not displaying header correctly
    primarykey
    data
    text
    <p>I have a question regarding my previous post: <a href="https://stackoverflow.com/questions/19928711/animation-stop-with-css3">Animation stop with css3</a></p> <p>The slider works perfect in Chrome. In firefox however it is not working properly. Does anyone here have an idea? </p> <p>Slider can be found here <a href="http://jimmytenbrink.nl/slider/" rel="nofollow noreferrer">http://jimmytenbrink.nl/slider/</a></p> <p>It looks like there is a problem in firefox with positioning absolute + display: table-cell.</p> <p>My code is as follows: </p> <pre><code> &lt;header&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div &gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;div&gt; &lt;img src="./images/ironman.png"&gt; &lt;span&gt;Ironman&lt;/span&gt; &lt;/div&gt; &lt;/header&gt; </code></pre> <p>And the css;</p> <pre><code> header { margin-top: 10px; width: 1185px; display: table; overflow: hidden; background-color: #000; height: 500px; } header &gt; div { background: url('./images/iron_man_bg.jpg'); width: 123.8px; height: 500px; position: relative; -webkit-transition: width .3s; transition: width .3s; display: table-cell; border: 2px solid #fff; overflow: hidden; } header div:first-child { margin-left: 0px; } header div:last-child{ margin-right: 0px; } header div:hover span { left: 50px; opacity: 1; } header &gt; div img { position: absolute; left: -240px; -webkit-transition: all .3s; transition: all .3s; -webkit-filter: grayscale(1); overflow:hidden; } header &gt; div span { -webkit-transition: left .3s; transition: left .3s; position: absolute; bottom: 30px; color: white; left: -70px; opacity: 0; width: 151px; font-family: 'Fugaz One', cursive; text-transform: uppercase; color: #fff; font-size: 24px; text-shadow: 0px 0px 10px #f1f1f1; filter: dropshadow(color=#f1f1f1, offx=0, offy=0); } header &gt; div:hover { width: 920px; } header div:hover img { left: 0px; -webkit-filter: grayscale(0); } </code></pre>
    singulars
    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.
 

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