20/09/04

Comments 26

Providing CSS for just Internet Explorer

(*Disclaimer* – although this didn’t turn out to be the valid replacement for the underscore hack that I hoped it was, I thought I’d leave the post here as proof of what happens when you don’t check your facts thoroughly enough. Or more specifically, when you’re so tired, that you confuse a vaild HTML result to be valid CSS – hey ho!)

Today, I had one of those little CSS accidents, which led me to discover that an easy way to provide css for only IE (PC and Mac 5, 5.5 and 6) is to simply to add a comma after the the selector, but before the opening brace:

div, {
width: 80%;
}

Mozilla, Opera and Safari ignore the rule. It validates too!). I hope this is useful to someone.

The fact that IE 5 Mac applies the rule as well, could reduce its usefulness. If you have time, please test it further and let me know your results.

Technorati TagsTags: , , ,

07/11/03

Comments

multiple versions of IE

Everyone’s linking to this, and normally I stay away from repetition of other blogs, but this is far too useful.

As you all know, one of the biggest problems with testing sites on a PC, is that Windows only allows one installation of IE. However, a recent tutorial explained how the patent-friendly version of IE 6 inadvertently provided a way around this. By altering the installation files for IE 5 and 5.5, you could have the 3 last versions of IE on the same PC!

So here comes the really useful bit. Ryan Parman has done the work for you and created standalone versions of IE 5 and 5.5 ready to download. Get them while you can, they may not be up for long.

Technorati TagsTags: , ,

Elsewhere

The Rissington Podcast - weekly shenanigans with Jon Oxton

Hicksmade - unique handmade goods by Leigh Hicks width=

archives

love

Brit Pack: A proud member I love Omniweb Coda Segment Publishing I buy my type from Veer The Forgiveness Project