Reply to Re: problem with IE - well, who does not?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация