Jump to content

If it doesn't work in IE...


Caitlin-havener

Recommended Posts

How do I put alternative CSS if something doesn't work in IE? Is there a way to just put an alternative if it doesn't work AT ALL regardless of browser?I am trying to use the CS3 font-face property.

Link to comment
Share on other sites

How do I put alternative CSS if something doesn't work in IE?
you can use Conditional comments to load a specific stylesheet for IE. For example:
<!--[if IE]><link rel="stylesheet" href="ie.css" /><![endif]-->

Here's a good article about it: http://www.quirksmode.org/css/condcom.html

I am trying to use the CS3 font-face property.
font-face will work in IE and most popular browsers, but unfortunately you will have to provide different formats for different browsers.For example, .ttf files will not work in IE but will work in Firefox. Luckily Font Squirrel lets you upload a font and it will generate all the necessary formats and even the CSS to use in your project:http://www.fontsquirrel.com/fontface/generator
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...