jquery - Problems with fluid layout in Firefox -


stackoverflow has helped learn lots of cool stuff unfortunately i'm stuck on , don't know how research way out of it....so here goes floating question hope has simple answer.

i've laid out website works great , want, uses great plugin called lemmonslider.js , i've managed make entirely liquid in layout...almost!

the problem works on safari, ios , chrome when test on firefox things go bad, bad. haven't tested in ie can imagine things funky.

below simplified code give idea of i've done...

i've tried using min-height in body, html tag doesn't seem help.

any input hugely appreciated

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html>     <head>         <title>example layout nice folk @ stackoverflow</title>         <script src="http://code.jquery.com/jquery-latest.min.js"         type="text/javascript"></script>         <style type="text/css">             html, body {                 width:100%;                 height:100%;                 padding:0;                 margin:0;                 background-color:red;             }             #content {                 position:absolute;                 top:50%;                 margin-top:-25%;                 width:100%;                 height:50%;                 background-color:blue;                 overflow:hidden;             }             #content ul {                 position:relative;                 margin:0;                 padding:0;                 height:100%;                 background-color:yellow;             }             #content li {                 list-style:none;                 float:left;                 height:inherit;                 background-color:orange;                 margin:0px 10px 0px 10px;             }             #content img {                 height:inherit;             }         </style>         <script type="text/javascript">             $(window).bind('resize', function () {                 location.reload();             });         </script>     </head>     <body>         <div id="content">             <ul>                 <li>                     <img src="any/sized/image" />                 </li>                 <li>                     <img src="any/sized/image" />                 </li>                 <li>                     <img src="any/sized/image" />                 </li>                 <li>                     <img src="any/sized/image" />                 </li>                 <li>                     <img src="any/sized/image" />                 </li>             </ul>         </div>     </body> </html> 

change #content

#content { position:absolute; top:25%; width:100%; height:50%; background-color:blue; overflow:hidden; } 

other wise... if not invested in css. totally recommend using 1140 grid. pretty cool cause grid comes media queries responsive design.

hope works you

cheers


Comments