You are here: Re: Weird behavior in IE7 with DIVs wrapped in links « HTML « IT news, forums, messages
Re: Weird behavior in IE7 with DIVs wrapped in links

Posted by Andy Dingley on 09/19/07 17:12

On 19 Sep, 15:28, David Dorward <dorw...@gmail.com> wrote:

> That's a syntax error.

No, it's an error of validity, not of syntax.

> <a> elements may not contain <div> elements.

Agreed.

It's not a good idea to embed <div> in <a>. As it's impossible to do
this in HTML (if you did it anyway, then it's no longer HTML), then
the browser has to compensate by turning your approximation of what
you thought you needed into the browser's approximation of what it
thinks you wanted. Obviously this is now vague, unpredictable and out
of control. Don't do it.

 

Navigation:

[Reply to this 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

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