|  | Posted by Toby Inkster on 02/06/06 21:02 
windandwaves wrote:
 > I know about the peek-a-boo thing, just not sure how to apply it to my
 > problem....
 
 Generally giving various elements "position:relative" will do it.
 
 Here's a related gem that I've been using quite a bit recently...
 
 <div id="wrap">
 <div id="content">
 ...
 </div>
 <div id="nav">
 ...
 </div>
 </div>
 <style type="text/css">
 
 /* fairly simple 2-column layout... */
 #wrap
 {
 position: relative;
 }
 #content
 {
 margin: 0 0 0 200px;
 }
 #nav
 {
 position: absolute;
 top: 0;
 left: 0;
 width: 200px;
 border-right: 1px solid;
 }
 
 /* PROBLEM: when #nav is very long, and #content is very short, then
 MSIE users won't be able to scroll down the page to see the bottom of
 #nav! */
 
 #nav * { zoom: 1; }  /* fix */
 
 </style>
 
 --
 Toby A Inkster BSc (Hons) ARCS
 Contact Me  ~ http://tobyinkster.co.uk/contact
  Navigation: [Reply to this message] |