All Guides

Internet Explorer 6 CSS Hacks

Internet Explorer 6 CSS hacks were specialized coding techniques that web developers used to work around IE6's numerous CSS rendering bugs and non-standard behavior, including the box model bug, lack of PNG transparency support, and broken float implementations. Common hacks included the "star hack" (*property), underscore hack (_property), and conditional comments to target IE6-specific CSS rules. “css /* Standard CSS for modern browsers */ .box { width: 200px; padding: 10px; border: 1px solid black; } /* IE6 hacks */ .box { *width: 178px; /* Star hack for IE6 */ _width: 178px; /* Underscore hack for IE6 */ voice-family: ""}""; voice-family: inherit; width: 178px; /* Tantek hack */ }

Why Internet Explorer 6 CSS Hacks Matters

IE6 CSS hacks represent one of the most frustrating periods in web development history, when Microsoft's dominant but broken browser forced developers to write multiple versions of every stylesheet and learn dozens of workarounds for basic functionality. These hacks consumed enormous development time and resources while teaching an entire generation of developers to expect browser inconsistencies, ultimately driving the push for web standards adoption and cross-browser testing practices.