Conditional CSS (almost)

December 3, 2008
Tags: ,

Today I was hacking IE7, working on formatting issues caused by relative positioning in CSS.  IE7 likes to ignore the negative X positions (e.g. left: -87).   While Googling around I stumbled across an elegant hack from Rafael Lima that let’s me specify different CSS depending on the browser.
Add their one line of JavaScript to your [...]

0