Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jun 2009
    Posts
    68
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Site looks different in IE to Firefox

    Hi Guys & Gals

    It seems I always have this issue in the sites I create, it's not the first time I've come to the forum with this problem - but each time it seems to be a different cause lol!

    My site looks perfect in Firefox, but in IE it's left alligned and the <li> buttons seem to have too much padding on them or something?

    Can anyone help?

    http://www.coolkidsparty.com/

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    You need to remove that comment before your doctype, and also the xhtml attributes in your html tag - so this:

    Code:
    <!--GET HEADER START -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    becomes

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    IE will not behave itself without a correct doctype - so that's the first thing to fix. If this doesn't resolve all the issues, post back.

  • Users who have thanked SB65 for this post:

    nickburrett (12-18-2010)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Add height:1%; to #Primary-Widget-Area li to fix the haslayout issues.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    nickburrett (12-18-2010)

  • #4
    New Coder
    Join Date
    Jun 2009
    Posts
    68
    Thanks
    22
    Thanked 0 Times in 0 Posts
    One last question...

    There should be a 50px top margin before the h4 tag in the Secondary-Widget-Area, but it's missing...

    #Secondary-Widget-Area h4 { margin-top: 50px; font-size: 10pt; margin-bottom: 5px; }
    #Secondary-Widget-Area { width: 250px; margin-bottom: 5px; }

    Where could it be? )

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,865
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Add overflow:auto; to #Secondary-Widget-Area to clear the floats by the above elements.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    nickburrett (12-18-2010)

  • #6
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    It's there, but since #Primary-Widget-Area ul is floated, #Primary-Widget-Area does not extend to include all of its contents, so the margin has no effect. To fix, clear your floats via:

    #Primary-Widget-Area {
    margin-bottom: 5px;
    overflow: auto;
    width: 250px;
    }

  • Users who have thanked SB65 for this post:

    nickburrett (12-18-2010)


  •  

    Tags for this Thread

    Posting Permissions

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