dcolin
11-05-2006, 09:01 AM
Have been trying to position a new web page using: margin-left: auto; and margin-right: auto; and this works fine in Firefox and Opera. But when viewed in IE6 zilch! I am also having problems with the text which when viewed in Firefox and Opera appears outside the contents area. Could someone please tell me what i am doing wrong. Big thanks. DC.
To view the page please go Here! (http://www.geocities.com/homemadepage/newpage.html)
angelic.deception
11-05-2006, 09:19 AM
Add this to the top of your pages:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN"
"http://www.w3.org/TR/html4/strict.dtd">
This will force IE to behave as much as it is capable of, and margin: auto should then work. =)
Hope that helps.
EDIT - Not sure what problem you're having with the text..
dcolin
11-05-2006, 09:37 AM
That worked a treat Angelic Deception many thanks. Perhaps an ordinary line break tag placed in appropriate position would cure text problem? DC
angelic.deception
11-07-2006, 03:44 AM
No worries, glad it worked. I'm not 100% sure what problem you're having, as the text appears fine to me. Could you perhaps take a screenshot and link to it here, please?
Thanks.