Click to See Complete Forum and Search --> : IE Won't Center Like Firefox
webcrawler
08-24-2006, 11:55 PM
Hello,
I've been scratching my goatee trying to figure out why in firefox my page is nicely centered, and in IE it doesn't (why the text paragraph doesn't center).
Any hints appreciated.
Page in question: Free Pop Up Creator (http://www.freepopupcreator.com/faq.php)
Vladdy
08-25-2006, 12:18 AM
The beginning of the problem is in the first line of your HTML code....
webcrawler
08-25-2006, 12:27 AM
So I changed:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
To:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
what's next?
Kravvitz
08-25-2006, 12:35 AM
Next please fix your HTML (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.freepopupcreator.com%2Ffaq.php) and CSS (http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A%2F%2Fwww.freepopupcreator.com%2Ffaq.php) errors.
Four ways to Center Elements with CSS (in IE5+/Win and other browsers) (http://www.dynamicsitesolutions.com/css/center_element/)
webcrawler
08-25-2006, 12:41 AM
Ok, I'll read the "four ways" link for clues.
webcrawler
08-25-2006, 12:46 AM
How would I write my doc type if I just wanted to go for "transitional"? Is there list somewhere of all possible doc declarations?
thanks
Kravvitz
08-25-2006, 12:55 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Here's a list of the most common ones: http://www.w3.org/QA/2002/04/valid-dtd-list.html