NameSilo

Please help with CSS problem

SpaceshipSpaceship
Watch

fooled

New Member
Impact
0
Hi.

First, thanks to everyone who is reading this post and to anyone who can (will) help!

I have decided to make my web site more compliant to web standards. This means that I have to change from HTML 4.01 to XHTML 1.0 (done) and change my table layout to CSS (almost done). I had to use Dreamweaver to convert because I'm still not comfortable with CSS. However, I don't know how to center the layers/layout so that it's in the middle of the page and yet will work with all resolutions.

http://www.helenhunt.org/main3.html There's a link. Any help would be appreciated! :-/
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Make a fixed width layer to hold your entire layout and set margin:auto for that layer. In correct browsers that will center the layout. However IE does not support that correctly. To solve that you most commonly add text-align:center to the body tag. (This should not center the layer at all in a correct browser).
 
0
•••
Yeah, as above but don't forget to set the correct doc-type at the top of the page or else you'll have problems....
-----------------------------------------------------
www.neilturnerfreelance.com
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back