CSS Cheat Sheet?

Out of context: Reply #2

  • Started
  • Last post
  • 17 Responses
  • estetic0

    I have also started implementing this recently:

    <!DOCTYPE html>

    <!--[if lt IE 7 ]> <html id="ie6" lang="en-US"> <![endif]-->
    <!--[if IE 7 ]> <html id="ie7" lang="en-US"> <![endif]-->
    <!--[if IE 8 ]> <html id="ie8" lang="en-US"> <![endif]-->
    <!--[if IE 9 ]> <html id="ie9" lang="en-US"> <![endif]-->

    <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en-US"> <!--<![endif]-->

    Then you can write css that targets elements in different browsers:

    html#ie7 div.container h1 {
    Margin: 1px;
    }

    • With IE6 out of the picture, I haven't really had issues with IE.ETM
    • <thispillhead
    • wow, that's the switch I was looking for some weeks ago, tnx!uan

View thread