www.webdeveloper.com
Results 1 to 7 of 7

Thread: IE Won't Center Like Firefox

  1. #1
    Join Date
    Aug 2006
    Posts
    8

    Question IE Won't Center Like Firefox

    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

  2. #2
    Join Date
    Nov 2002
    Location
    Nashua, NH
    Posts
    3,195
    The beginning of the problem is in the first line of your HTML code....
    Vladdy

    Working web site is not the one that looks the same in a few graphical browsers, but the one that adequately delivers its content to any device accessing it.

  3. #3
    Join Date
    Aug 2006
    Posts
    8
    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?

  4. #4
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

    Check out my blog.

  5. #5
    Join Date
    Aug 2006
    Posts
    8
    Ok, I'll read the "four ways" link for clues.

  6. #6
    Join Date
    Aug 2006
    Posts
    8
    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

  7. #7
    Join Date
    Jul 2005
    Location
    USA
    Posts
    3,910
    Code:
    <!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
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions

    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.

    Check out my blog.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles