iandevlin.com

Icon

A mixture of musings on web design & development, history, and life

Using conditional comments to provide CSS for different browsers

conditional

Whilst I tend to hold the view if you design a website properly from scratch that you shouldn’t need different CSS, there are occasions when sometimes a minor tweak is required here or there for a particular browser (I’m talking to you Internet Explorer 6) in order for it to display correctly. Or in some cases you may want it to display differently.

If you find yourself in this position, I recommend defining the browser specific CSS definitions in a separate CSS file and using conditional comments.

Read the rest of this entry »

http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/digg_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/reddit_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/stumbleupon_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/delicious_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/technorati_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/google_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/facebook_24.png http://www.iandevlin.com/blog/wp-content/plugins/sociofluid/images/twitter_24.png