SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast Slashdot's Avatar
    Join Date
    Jan 2006
    Location
    Bangladesh
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Footer misaligned in FF but perfect in IE? How to solve it?

    Hello everyone.
    I have designed this webpage for a client.

    It is 100% W3C & XHTML compliant. But the footer bit of the page is messed up when viewed in FF. But its perfect in IE.
    >> view the website here <<
    But when i view the footer separately in other html, then it works just fine ?!
    View the footer here.
    I have no clue as to what i am doing wrong here to mess up the footer that bad.
    Can anyone please help me?

    Thank you for your help.
    SlashDot

  2. #2
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have no namespace declaration in the <html> tag. If I recall right that puts IE into quirks mode for rendering. But I could be wrong.

    If it looks "right" in IE and "wrong" in FF, then most of the time IE is lying to you and FF is telling you the truth.
    Last edited by Ed Seedhouse; Sep 9, 2006 at 09:25.
    Ed Seedhouse

  3. #3
    SitePoint Enthusiast Slashdot's Avatar
    Join Date
    Jan 2006
    Location
    Bangladesh
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello sir.
    Thank you for the response. But i am completely lost as to what you are saying here :S Can you please elaborate a bit with an example?

  4. #4
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The namespace will not put IE into quirks since it is served as html anyway.

    What he means is you can't trust IE to render properly so get your code to work in Firefox first, then adjust for IEs quirks and bugs. Unfortunately, you use tables to do this so I can't help you.

  5. #5
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by drhowarddrfine
    The namespace will not put IE into quirks since it is served as html anyway.
    Thanks for pointing that out. Don't know where I got the idea.

    However xhtml 1.0 should have the namespace declaration in the <html> element, right?

    I second, third, and fourth your remarks about developing to a standards compliant browser and then only when it looks right there patch it up for IE.

    Using IE as your development target is an invitation to disaster.
    Ed Seedhouse

  6. #6
    SitePoint Evangelist Ed Seedhouse's Avatar
    Join Date
    Aug 2006
    Location
    Victoria, B.C. Canada
    Posts
    592
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by drhowarddrfine
    Unfortunately, you use tables to do this so I can't help you.
    I took another look at the code and not only is he laying it out with tables he is using <font> tags!

    Time to tear down and start over.
    Ed Seedhouse

  7. #7
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    However xhtml 1.0 should have the namespace declaration in the <html> element, right?
    It should be but if the page is served as text/html then it won't make any difference.


Bookmarks

Posting Permissions

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