6 Years
Discussion Span
Last Post by drjohn

DON'T use absolute positioning.

Create a wrapper div first, give it a width, and then set margin:auto for it in the css. That will center it.

Inside that div create a header div and inside that put the content that is your header image (probably better as the background image to the header) and the menu (created using an unordered list, styled by css).

Also inside the wrapper div, create your content div and give it the image we can see your text sitting on as the background to it.

Then enter your content inside that div.

Alternatively and possibly better, set the entire image we can see as the background to the wrapper div. (Remembering to set the background color of the body itself to the blue we can see.)

DO NOT use absolute positioning because, as you have just discovered, it is not the correct solution the vast majority of the time, and should only be used in some odd occasions. Do not use drag and drop to position things.

PS Layers was a word invented by Netscape, the correct term has always been div.

Edited by drjohn: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.