Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Serialscroll CSS problem
    primarykey
    data
    text
    <p>I'm having a terrific problem with an implementation of serialscroll. I've set it so that each list item is 100% width, to get a full screen slideshow going. </p> <p>You can check out the full code here: <a href="http://www.reverenddan.net/so/" rel="nofollow noreferrer">http://www.reverenddan.net/so/</a></p> <p>The CSS is fairly simple:</p> <pre><code>#slideshow { width: 100%; height:100%; margin: 0; padding: 0; position:absolute; overflow:hidden; } #slideshow ul { width: 800%; height:100%; margin: 0; padding:0; } #slideshow li { width:12.5%; height:100%; margin: 0; padding: 0; float:left; list-style: none; } </code></pre> <p>and the corresponding HTML:</p> <pre><code>&lt;div id="slideshow"&gt; &lt;ul&gt; &lt;li id="slide1"&gt;&lt;img class="centered" src="img/beetle.png" width="344" height="380" /&gt;&lt;/li&gt; &lt;li id="slide2"&gt;&lt;img class="centered" src="img/beetle.png" width="344" height="380" /&gt;&lt;/li&gt; &lt;li id="slide3"&gt;&lt;img class="centered" src="img/beetle.png" width="344" height="380" /&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>It's all working a treat, however if you resize the window on the second or third frames, the list items holding the images seem to resize at a different rate than the browser window, rather than staying centered. I've used a bit of jquery to vertically align the images, but I thought the text-align: center and 100% width would be enough to keep them in place. </p> <p>Any thoughts would be greatly appreciated, I'm at the end of my tether!</p>
    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