SBO -> Center a Layer In FP2003 (2/6/2005 2:16:42)
I posted this in the beginners development section and someone suggested that I would need to use CSS. I'm trying to center a layer with FrontPage 2003 so the whatever the screen dimensions are layers will be centered. I'm using FrontPage 2003.
jaybee -> RE: Center a Layer In FP2003 (2/6/2005 5:04:09)
Ahhh now this dpends very much on the layer (Div) you are trying to centre. If it's just one Div then
.content {width: 100%; margin-left: auto; margin-right: auto;} in your css and
<div class="content">put your content here</div> in the HTML will work but if you have several divs then it depends how they're laid out.
If you view the source code behind the page you'll get all the code you need. All the css styles are up the top. You'll need to fiddle around with heights, widths etc but it does work. I have a site that does something similar.
SBO -> RE: Center a Layer In FP2003 (2/8/2005 2:47:25)
Thanks for your help jaybee. I have decided to use Tables rather than Layers and centering tables is far easier.