Re:CSS Techniques I Wish I Knew When I Started Designing Web...
by Semiapies on Tuesday December 22, 2009 @04:21PM
(#1010842)
Another trick I've seen that I wish I'd come across long ago - a particular use of IE conditional comments to avoid having to break out IE CSS fixes into different style sheets:
This applies "ie" and version-specific classes to the body tag in IE browsers. Therefore, if something about a button tag doesn't look right in IE in general, I can use the ".ie button" selector to apply a fix right below my button styling. If it's just IE 6 giving me grief, I can use the ".ie6 button" selector.
[ Parent
| on HN ]
Re:CSS Techniques I Wish I Knew When I Started Designing Web...
by somecanuck on Thursday December 24, 2009 @05:06PM
(#1014452)
Brilliant!