!!! Listings aus dem Artikel "Anmerkungen zum Stil" !!! von Michael Jendryschik in iX 3/08, S. 132 !!! Listing 1: Dateikommentar /** * Stylesheet für http://jendryschik.de/ * * Standard-Stylesheet * * @author Michael Jendryschik * @link http://jendryschik.de/ * @copyright Copyright 2000-2008, Michael Jendryschik * @license CC-A 2.0 (http://creativecommons.org/licenses/by/2.0/de/deed.de) */ !!! Listing 2: Abschnitts-Kommentar und Bugfix /** * Globale Einstellungen und Bugfixes * * @section Browser-Reset */ /* Globale Werte setzen */ * { margin: 0; padding: 0; border-collapse: collapse; border-spacing: 0; } /** * Korrektur des Italics-Bugs * * @bugfix * @affected IE 5/Win, IE6 * @css-for IE 5/Win, IE6 * @valid yes * @see http://blog.highresolution.info/index.php?/highresolution/comments/dem_italics_bug_die_zaehne_zeigen/ */ * html body * { overflow:visible; } * html iframe, * html frame { overflow:auto; } * html frameset { overflow:hidden; } !!! Listing 3: Workaround #nav a { color: white; background-image: url(nav_bg.png); } #nav a:hover, #nav a:focus, #nav a:active { color: #E07E32; background-image: url(nav_bg_hover.png); } /** Keine Transparent im IE < 7 * * IE < 7 versteht keine Transparenz bei PNG-Grafiken, * daher gibt es für diese Browser keine Hintergrundeffekte. * * @workaround * @affected IE 5.x/Win, IE6 * @css-for IE 5.x/Win, IE6 * @valid yes * @since 2007-12-10 */ * html #nav a { background-image: none !important; }