CSS Hack

From CSS Discuss

Jump to: navigation, search

CSS Hacks

CSS hacks take advantage of browser bugs to perform magic such as "hiding" CSS rules from specific web browser's, or kicking browsers that don't follow the specs, into line. There is a long running occasional debate over whether or not these hacks should be used, covered on To Hack Or Not To Hack . Please keep such discussions off this page. The attributes of a good CSS hack are described on Good CSSHack .

Hacks Include

Hacks for Mac browsers:

  • The body:first-of-type hack (feeds rules to Safari 3 Only)
  • The Code Bitch Omni Web Hack (hides files from Omni Web )
  • The Type Entity Hack (hides rules and/or files from iCab)
  • The Lone Star Hack (feeds rules to OS9/Classic IE5, hides from OSX IE5)
  • The Safari Spacer Hack (hides rules from Safari and Konqueror) -- This no longer applies to Safari as of build v73 -- use the escape hack found here: [1]
  • The Not My Child Hack (shows rules to MSN MacOSX, hides rules from everything else)
  • The IE5/Mac Band Pass Filter (feeds rules to Internet Explorer 5 for Mac only)

Category Bug Workaround , Category Browser Bug

Personal tools