2 replies [Last post]
niallkelly
Offline
newbie
Ireland
Last seen: 16 years 28 weeks ago
Ireland
Joined: 2004-07-08
Posts: 6
Points: 0

Hi,

I'm using text-align=center for the body which works in IE, but it doesn't seem to be working for Firefox. Does anyone know why?

The address is http://www.registerhome.com/css and stylesheet at http://www.registerhome.com/css/style.css.

I'd appreciate any help you might have.

Thanks,
Niall

The Finch
Offline
Enthusiast
Cincinnati
Last seen: 16 years 25 weeks ago
Cincinnati
Timezone: GMT-5
Joined: 2004-08-01
Posts: 65
Points: 0

center positioning body

you need your wrapper's left/right margins to be auto.

For example, try changing...

Quote:
div#wrapper {position: relative;width: 724px;border: none; padding: 0;
margin: 0;
text-align: left;margin-top: 40px;}

to...

Quote:
div#wrapper {
position: relative;
width: 724px;
border: none;
padding: 0;
margin: 40px auto 0 auto;
text-align: left;
}

niallkelly
Offline
newbie
Ireland
Last seen: 16 years 28 weeks ago
Ireland
Joined: 2004-07-08
Posts: 6
Points: 0

center positioning body

That worked perfectly. Thanks!