Click to See Complete Forum and Search --> : text-align:center and netscape problem


amahmood
06-08-2005, 06:14 PM
text-align:center; in body tag won't work for netscape. what should i do? do I just put a <center> there?

BonRouge
06-08-2005, 06:28 PM
It should work fine. Don't use <center>. Show us your page and tell us exactly what you want.

amahmood
06-08-2005, 06:32 PM
This is the address
http://www.edinburghcityhotels.co.uk/

and:
CSS FILE (http://www.edinburghcityhotels.co.uk/files/edinburgh.css)

BeachSide
06-08-2005, 07:22 PM
if you want it to center the page then wrap the entire page in a div give it an id such as mainDiv or something then add to your css


#mainDiv {
position: relative;
margin-left: auto;
margin-right: auto;
}

BonRouge
06-08-2005, 07:40 PM
if you want it to center the page then wrap the entire page in a div give it an id such as mainDiv or something then add to your css


#mainDiv {
position: relative;
margin-left: auto;
margin-right: auto;
}

When you do this, make sure you give it a width or you wont see any centering.