Author Archives: John Pillion

How to write Internet Explorer specific CSS

If you work with CSS, you know that at times you will need to write IE-specific styles… or worse, IE-version specific styles. Some particularly common examples would be when you’re working with the position property, or padding/margins, where it’s quite common for the placement to vary between IE and other browsers. There are a number of different approaches that have been tried, including JavaScript plugins that (only somewhat reliably) detect the browser type and version, CSS hacks that for reasons that don’t need to be stated, should probably be avoided (they’re hacks), conditional comments, and probably more.

Continue reading