NavBar Messed up in IE

Discussion in 'CSS' started by Borduhh, Nov 19, 2010.

  1. #1
    Hello,

    I have designed a blog associated with my website (http://www.outplaypoker.com/poker-tips). It appears perfectly in Firefox and Chrome. But of course IE screws everything up.

    I was wondering if anyone could take a peek and tell me what I could add to fix it?

    Best Regards,
    Nick
     
    Borduhh, Nov 19, 2010 IP
  2. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #2
    Remove float:right from .livechat

    Only for IE7, work with conditional comments.

    For example:

    
    <!--[if IE 7]>
    <style type="text/css">
    .livechat {
    float:none;
    }
    </style>
    <![endif]-->
    
    Code (markup):
    That should do the trick. Insert it after the <link> to the CSS file.
     
    CSM, Nov 26, 2010 IP
  3. deepakg

    deepakg Peon

    Messages:
    48
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Your doctype is incomplete, putting IE into quirks mode. For new pages you should be using a strict doctype anyway, and the full version looks like :

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    Code (markup):
     
    deepakg, Dec 6, 2010 IP
  4. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #4
    The doctype is not incomplete. It's a wordpress installation and those are NOT incomplete.
    It is XHTML 1.0 Transitional, that's ok (strict is not needed and would generate more invalid code with wordpress anyway).

    Check here: http://validator.w3.org/check?uri=http://www.outplaypoker.com/poker-tips/

    If the doctype would be "incomplete" w3c validator would tell us.

    IE7 is rendering CSS different, that's why.

    My conditional comments should work.
     
    CSM, Dec 7, 2010 IP
  5. logoland

    logoland Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you might want to have a look at htmldog.com/articles/suckerfish/dropdowns
     
    logoland, Dec 16, 2010 IP