Sunday, March 25, 2012

4 Types of CSS Hacks for Web Designers and Developers

1 comment

If you are a Web Designer or Developer and looking for a CSS hacks then this post going to help you. 
In this post I am going to share 4 different types of CSS hacks you can use. 

Following are the good example of Conditional stylesheet for Internet Explorer. Conditional comments used 

easily to specify stylesheets that should only be loaded in IE, or even in specific versions of that browser.

Don't worry about Non-IE browsers, it treats conditional comments as HTML comment. 

1
2
3
<!--[if for IE 8]><link rel="stylesheet" href="for-ie-8.css"><![endif]-->
<!--[if for IE 7]><link rel="stylesheet" href="for-ie-7.css"><![endif]-->
<!--[if for IE 6]><link rel="stylesheet" href="for-ie-6.css"><![endif]-->

1 comment: