Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Including Browser specific CSS file when JavaScript disabled?

Tags:

javascript

css

I have 2 CSS files for my site, one for all normal browsers and other for the retarded Internet Explorer. I am including either of the CSS file depending on a JavaScript which checks the browser capabilities. What would be the best option in case the user has disabled JavaScript! I should be including some CSS without which all the pages look ... well... naked. Any comments appreciated.

like image 768
theraneman Avatar asked Apr 23 '26 22:04

theraneman


1 Answers

you mean

<!--[if IE 6]>

and

<![endif]-->

don't work without javascript?

BTW, here are the first two google search results for "browser specific css":

  1. http://www.webmonkey.com/tutorial/Browser-Specific_CSS_Hacks
  2. http://www.sitepoint.com/article/browser-specific-css-hacks/

cheers!

like image 95
jrharshath Avatar answered Apr 25 '26 12:04

jrharshath



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!