|
Posted by Toby Inkster on 02/07/06 01:37
windandwaves wrote:
> David Graham wrote:
>> Toby Inkster wrote:
>>
>>> #nav * { zoom: 1; }
>>
>> Does the star after #nav represent any element within the div with
>> id=nav?
>
> I actually think it is a hack, where either IE or the other browsers do
> not read the style definition.
No, David was right. "*" is a valid CSS selector: it means "anything".
"DIV P {...}" selects paragraphs inside divs. Similarly, the selector I
posted selects anything within #nav.
It's not a hack; it's supported by almost any CSS-capable browser.
That said, "zoom:1" is a hack. It's not valid CSS: "zoom" is a proprietary
MSIE property designed to scale different HTML elements. Setting it to
"zoom:1" doesn't do anything in IE, as you're effectively zooming to
normal size, but it does have the effect of fixing IE's "hasLayout" bug.
Other browsers ignore it.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|