1. Quick IE Hack

    Posted by Rob CornishPostMay 21, 2009Date

    Simple hack that works across all IE's!

    This little niffty css hack I came across was similar to the underscore IE hack I.E. _height:100px;

    Using two backslashes (//) instead of the underscore works across all IE's.
    IE ignores the two backslashes as where all other browsers see this as comments. Genius!!

    Example:
    body { //margin-top:10px; margin-top:5px; }



  2. Min-Height Fast Hack

    Posted by Rob CornishPostAugust 7, 2008Date

    A genius IE6 min-height fix.

    #selector {
      min-height:500px;
      height:auto !important;
      height:500px;
    }

    Source: Dustdindiaz

    Reviewing this code, there's a simpler way of doing it. Here's the other way:

    #selector {
      min-height:500px;
      _height:500px;
    }

    IE6 should read the _height property where as all other browsers will ignore.



  3. IE6 min-widths and min-heights

    Posted by Rob CornishPostMay 7, 2008Date

    Using the following code you can get IE6 to work with min-width and min-height.

    * html #wrapper
    {
         width:expression((d = document.compatMode == "CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 1280 ? "1280px" : d.clientWidth < 1024 ? "1024px" : "auto"));
    }
    

    Note: Place this within an if IE 6 condition.



Tags
Flickr
DSC_0207DSC_0206DSC_0205DSC_0197
© 2008 dlnqnt - Admin - Login