Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Does anybody knows how to write CSS hack that only Safari will understand but ingored by the rest browsers?

    I found this one so far.
    /* Be nasty to Safari */
    @media all {
    @import url(style.css);
    /* rules */
    }
    /* End be nasty to Safari */

    Best, DS
    •  
      CommentAuthormringlein
    • CommentTimeJun 23rd 2006 edited
     permalink
    If I remember correctly, placing a "#" after your ";" should do the trick.

    #dontusehacks {margin:0;}
    #dontusehacks {margin:2px;#}

    Everyone should have a margin of 2px and safari should have a margin of 0. Let me know if I am wrong here. I remember using this hack on the National Trust Redesign: http://www.nationaltrust.org .
Add your comments
    Username Password
  • Format comments as (Help)