Category Archives: CSS Tricks

Tricks and tips to help you master Cascading Style Sheets.

Going Mobile

Today I wrapped up the initial screen design for the site.  The CSS and HTML has been validated successfully as XHTML 1.0 Transitional.  It has been tested in the following browsers: Chrome 3.0 – Windows XP Firefox 2.0 – OS X, Windows XP Firefox 3.0 – OS X, Windows XP Firefox 3.5 – OS X, Windows XP, Windows Vista Internet [...]
Also posted in DePaul University | Tagged , , | Leave a comment

Conditional Comments for Exceptional CSS

A clever way to write specific exceptions for various versions of IE, without doing CSS hacks that rely specifically on browser bugs, is to assign a unique ID to the <body> tag of your page using conditional comments. <!--[if !IE]> --> <body> <!--<![endif]--> <!--[if IE 8]> <body id="IE8"> <![endif]--> <!--[if IE 7]> <body id="IE7"> <![endif]--> <!--[if IE 6]> <body id="IE6"> <![endif]--> Then, to write an exception of code [...]
Posted in CSS Tricks | Tagged | 1 Comment

Switch to our mobile site