They are NOT LAYERS, they are just plain divs - which means 'DIVisions'. "Layers" is an old holdover from the Netscape Navigator 4 days, I just wish DW would stop using that term !
To center a layout with css you have to do a couple of things:
Add text-align: center; to the rules for body;
body{text-align: center;}
That will take care of IE 6 and below.
For all other browsers, set the margins on the element to be centered to margin: 0 auto; - that tells it to make the top and bottom margins zero, and the left and right margins automatic. Make sure the div has a defined width.
Then in the rules for the centered div, add text-align: left - that will put the text INSIDE the div back where it belongs.
Since you're using DW to do your code, I'd be willing to bet you've got every single div set to position:absolute, right ?? Bad way to do things. Read up on CSS layouts here: http://css-discuss.incutio.com/?page=CssLayouts
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
Last edited by LadynRed; 08-21-2007 at 12:19 PM..
|