Previous Message
Next Message

Positioning Confusion

Sent by Jim Davis on 2 September 2005 04:04


Using position: absolute for the menu is placing the menu in relation to the 
top left corner of the viewport. I would change the menu div to:

position: relative;<--could be deleted
width: 760px;
margin-left: auto;
margin-right: auto;
margin-top: -20px;
padding-left: 5px;
height: 25px;
background: url(http://www.insidedesign.info/bck/images/contentBacground.gif) 
repeat-y;
}

Jim

On 9/1/05, Klear [EMAIL-REMOVED]> wrote:
> 
> I could not find answers to my specific problem in
> past postings, so here is my situation:
> 
> HTML: http://www.insidedesign.info/bck/index.html
> CSS:
> http://www.insidedesign.info/bck/css/internet-web-design.css
> 
> I am trying to develop a simple centered layout with a
> flow like this:
> Header
> Menu
> Content
> Footer
> 
> The layout should all fall within a width of 760
> pixels. My problem comes down to positioning
> everything. I am not sure why my menu is not falling
> directly underneath the header. I thought I understood
> the box model, but I guess not =/
> 
> 
>
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: