Note that there are some explanatory texts on larger screens.

plurals
  1. POAuto centering list item/image 100% page height
    primarykey
    data
    text
    <p>basically, what i am trying to achieve is the following layout;</p> <p><a href="http://farm9.staticflickr.com/8256/8746793625_d3fed90c54_b.jpg" rel="nofollow">http://farm9.staticflickr.com/8256/8746793625_d3fed90c54_b.jpg</a></p> <p>I have tried using tables, but could not get the images to 100% of the page height.<br> I have tried crating an unordered list with display:inline and the images resized correctly, but I could not 'centre' on the "main" or second item in my list.</p> <p>I am limited by the fact that I can't specify the dimension's of the images. I would like to stick to CSS of possible, unless maybe there is a way of testing the window size with Jquery and feeding that in somehow? (im pretty new to this)</p> <p>I'm all out of ideas, can anyone help?!?!</p> <p>Cheers!</p> <p>This is as close as I got;</p> <pre><code>&lt;body&gt; &lt;div class="wrapper" style="position:absolute; width:100%; height:100%; margin:0; padding:0; top:0; left:0;"&gt; &lt;table style="position:absolute; width:100%; height:100%; margin:0; padding:0; top:0; left:0; text-align:center; white-space: nowrap; overflow:hidden;"&gt; &lt;td style="width:20%" &gt;&lt;img style="position:relative;width:auto;max-height:100%" src="http://shellsuitzombie.co.uk/wp-content/uploads/2013/04/Brad-Rose-I-never-finish-anything.jpg"&gt;&lt;/td&gt; &lt;td style="width:60%" &gt;&lt;img style="position:relative;width:auto;max-height:100%" src="http://shellsuitzombie.co.uk/wp-content/uploads/2013/04/Brad-Rose-I-never-finish-anything.jpg"&gt;&lt;/td&gt; &lt;td style="width:20%" &gt;&lt;img style="position:relative;width:auto;max-height:100%" src="http://shellsuitzombie.co.uk/wp-content/uploads/2013/04/Brad-Rose-I-never-finish-anything.jpg"&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/body&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.
 

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