Monday, 7 October 2013

Conditional CSS

Anyone who has tried to get CSS working with IE will know about the 'nuances' of the browser.

Thankfully, CSS gives us some conditional formatting methods to deal with these scenarios; you can apply class explicitly based on the browser type or version.

<!--[if IE]>
<style type="text/css">
    @font-face {
    font-family: "Arial";
    src: url("../new/over.ttf");
    src: local("Over the Rainbow"), url("../new/over.ttf");

See here for more information

No comments:

Post a comment