This is a migrated thread and some comments may be shown as answers.

How to Use Specific CSS in Specific Browser Versions?

1 Answer 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oh
Top achievements
Rank 1
Oh asked on 19 Jan 2016, 06:06 PM

Hi there,

I was wondering whether it was possible to use a specific CSS depending on the browser a user is using? If so, how is that achieved?

For example, I currently have a stylesheet (let's call it stylesheet A) that specifically styles Internet Explorer 8, I have another stylesheet (stylesheet b) that styles Internet Explorer 11. How would I be able to get stylesheet A to be read and applied to IE 8 and Stylesheet and applied to IE 11? Do I just use something like: 

if (kendo.support.*) {
     // Do something
}

Thank you in advance!

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 21 Jan 2016, 09:13 AM

Hello Oh,

You can use IE conditional comments to achieve this. If you decide to serve only one spreadsheet and target specific rules for the browsers, you can use the .k-ie8 and .k-ie11 classes that are added to the <html> element.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Oh
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or