Are you new to CSS? The initial process of learning this nifty language can be a little daunting, there’s so much to learn it can sometimes be difficult to figure out where to start. Luckily there’s plenty of valuable information and resources out there on the web that covers everything from the basics through to advanced topics. This collection of 15 articles pulls together some of the best must read blog posts for anyone looking to get started with CSS styling.
In an article at the recently launched Vitamin, Dave Shea brings up the potential dangers of using CSS hacks. Stop Hacking, or be Stopped is Dave’s first article for Vitamin, which looks like it will be a great resource for web designers, developers and entrepreneurs.
In the article Dave uses the upcoming release of IE7 to point out that relying on browser bugs to send different CSS to different browsers has always been risky, and that it is proving to be increasingly difficult to keep track of and test various hacks in specific versions of specific browsers. He ends the article by suggesting a few possible ways of dealing with browser discrepancies in the future.
MSIE for Windows has for a long time had a feature named Conditional Comments that allows content to be visible only for MSIE. Use of conditional comments instead of other css hacks is simple:
- Create a stylesheet common for all browser, without using any hacks to work around rendering problems in MSIE.
- Create a stylesheet common for all versions of MSIE
- Create a separate stylesheet for each of the MSIE versions you want to target.
- Include the stylesheets from 2 and 3 by using a conditional comment