How to Use Specific CSS in Specific Browser Versions?

2 posts, 0 answers
  1. Oh
    Oh avatar
    1 posts
    Member since:
    Jan 2016

    Posted 19 Jan 2016 Link to this post

    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 B read and applied to IE 11? Do I just use something like: 

    if (*) {
         // Do something

    Thank you in advance!

  2. Alex Gyoshev
    Alex Gyoshev avatar
    2515 posts

    Posted 21 Jan 2016 Link to this post

    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.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top