delerious wrote:
Is there a hack just for IE 6?
There are various hacks for different combinations of browsers. By
combining several, it is usually possible to get a combination that works
in any browser you like.
Here is a hack to make some element (#mydiv) blue in IE 6, but red in
other browsers.
#mydiv { color: red; }
#mydiv {
\color: red;
c\olor: blue;
}
html>body #mydiv { color: red; }
Untested, but should work.
IE 6 sees the first three 'color' properties, but not the last. IE 5 only
sees the first two. Opera 6+ and Gecko see them all. As a result, IE 6
applies the blue colour and others use red.
Not sure what will happen in KHTML, but I think it should see what Opera
and Gecko see.
For more nice CSS hackism, see:
http://www.goddamn.co.uk/tobyink/sty...umn-layout.css
That file does my two column layout for Opera 3.6+, Internet Explorer 4+,
Gecko and Konqueror 3. I think it's pretty nifty.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me -
http://www.goddamn.co.uk/tobyink/?page=132