|
Posted by windandwaves on 02/07/06 02:59
Toby Inkster wrote:
> 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.
Classic! My apologies. I remember there was some way of using an * as a
hack, but i cant remember it...
[Back to original message]
|