Els wrote:[color=blue]
> Haines Brown wrote:[color=green]
>> "Barry Pearson" <news@childsupportanalysis.co.uk> writes:[/color][/color]
[snip][color=blue][color=green][color=darkred]
>>>I used the following extra CSS for one page. I used a conditional
>>>comment in the head block so that only IE saw this.[/color]
>>
>> Neal,
>> I understand your general point, but wondered about "conditional
>> comment." Don't EI and Mozilla respond to a comment in the header
>> style the same way?[/color]
>
> It's Barry who mentioned the conditional comment, not Neal ;-)[/color]
I've lost track of who is asking what of whom!
There are ways to put conditional comments in the head-block so that (as far
as I know) only IE will take action. All other browsers will treat them as the
comments they are. I've seen references to the material on the MS site, but I
can't find the reference at the moment.
Example, from a head-block:
<!--[if IE]>
<link href="exhibit05_ie.css" rel="stylesheet" type="text/css">
<![endif]-->
This will cause IE, and no other browser, to use exhibit05_ie.css in the
cascade. See, for example, the following page. In non-IE browsers it takes the
cells of a table and uses { position: fixed } to stick them to the corners &
sides of the viewport. But IE doesn't support { position: fixed }, so a
work-around it needed. This page uses a tricky combination of html & body
rules & { position: absolute }. And then, even in IE, it can stick the cells
of a table to the corners & sides of the viewport.
http://www.barry.pearson.name/articl.../exhibit05.htm
--
Barry Pearson
http://www.Barry.Pearson.name/photography/ http://www.BirdsAndAnimals.info/ http://www.ChildSupportAnalysis.co.uk/