I am wondering if there is any thing which works like ie conditional comment for webkit.
I want to change width.
For example,
<!--[if IE]>
<link href="css/ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
Thanks in advance.
No, there are not.
You can hack it by doing browser detection in JS and attaching scripts/styles dynamically.
Or, if you are concerned only with having different css for different browsers, you can use css hacks. There are probably css hacks that work with the browsers you need.
Or, if the only thing you need to change is 'width' (of one css definition?) you can probably do it in jquery or javascript
jquery browser detection. see: http://docs.jquery.com/Utilities/jQuery.browser
I use this on every project: http://rafael.adm.br/css_browser_selector/
Although, if you are having to do a lot of targeting in Firefox or Webkit — you may want to reconsider how you are writing your HTML/CSS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With