Reply to Re: Weird behavior in IE7 with DIVs wrapped in links

Your name:

Reply:


Posted by David Dorward on 09/19/07 14:28

On Sep 19, 2:58 pm, Daniel Smedegaard Buus <danielb...@gmail.com>
wrote:
> <a href="/?cat=1" title="View all articles filed under Works" <?
> php if (cur_page() == 'works') { echo("class=\"current\""); } ?>>
> <div class="link">

That's a syntax error. <a> elements may not contain <div> elements.
Try running your code through a validator (such as the one at
http://validator.w3.org/ ). "Weird behavior" is to be expected when
you present software with unexpected input.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

[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

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