How to hide CSS from buggy browsers
Here are some tricks to hide css rules from buggy browsers.
There are several browsers where all the tricks listed here don't work (maybe they are too standards compliant, maybe they have exploitable bugs that I don't know yet):
- Netscape 6.01 up
- Mozilla 0.9.1 up
Important: As the Berlin branch of Pixelpark will soon close down, I won't be an employee of that company by the end of 2002. So my account will be removed, and this collection of "CSS hiding methods" will also close.
Contents
- The @import rule
- The media attribute
- The 'comment bug'
- The attribute selector
- The child selector
- Tantek's Hack (only to be used in connection with some NN4 hiding method)
- more methods
- Summary (Table)
Changes
- 20020917: Christian Jacobsson added information about the import methos
- 20020423: Sven Berg Ryen added information about Mac IE 4.01, Mozilla 0.9.7 -> Mozilla 1.0rc1, added Caio's NN4 hiding technique in 'more methods'
- 20020328: Merlin Emrys added information about Mac IE 4.5
- 20020318: Sascha Claus updated his part in 'more methods'
- 20020218: added Win IE 4 for '@media all'
- 20020108: added Mac IE 5.0 for '@media all'
- 20020103: added navigational structure (link elements), Mozilla 0.9.6 -> Mozilla 0.9.7, changed entry for Konqueror in summary table
- 20011126: clarified MacIE support for Tantek's hack, Mozilla 0.9.5 -> Mozilla 0.9.6, added Netscape 6.2
- 20011023: added @import url() without quotes, added @media all {}, added 'more methods', Mozilla 0.9.2 -> Mozilla 0.9.5, Netscape 6.01 -> Netscape 6.1; Dominik suggested to remove iCab from the summary until a final version is released.
- 20010718: Summary Table correction, Opera 5.11 -> Opera 5.12
- 20010716: Win Amaya 5.1 added, Mozilla 0.9.1 -> Mozilla 0.9.2
- 20010709: Konqueror 2.1.2 added
Thanks to Dominik Boecker, Colin Brown, Johann Burkard, Caio Chassot, Sascha Claus, MacEditions's CodeBitch, Ian Davey, Merlin Emrys, Rijk van Geijtenbeek, Christian Jacobsson, Jukka Korpela, Michael Nahrath, Juan R. Pozo, Sven Berg Ryen, Chris Sharman, and Nick Theodorakis for comments and additions.