You are here: Re: Formatting links « HTML « IT news, forums, messages
Re: Formatting links

Posted by Neredbojias on 11/24/05 13:12

With neither quill nor qualm, Toby Inkster quothed:

> Neredbojias wrote:
>
> > <a href="welcome.html" style="display:block"><h2>Welcome</h2></a>
>
> A is still inline, so can't contain an H2 element. (Just because you've
> made it *look* like it's a block element, doesn't mean it really *is* a
> block element!)

Why not? An inline element styled to "look like" a block element takes
block attributes, doesn't it?

I may not be correct in this analysis, but if the only support you have
for your view is that the css validator doesn't validate it, that means
nothing. The w3c css validator itself is broken and frequently gives
the wrong result for what is and is not valid css.

>
> If you want a valid way of nesting an H2 element within an A element, both
> of these will validate:
>
> <a><object><h2>Hello</h2></object></a>
>
> <a><noscript><h2>World</h2></noscript></a>
>
> Though neither is likely to do what the OP wants.
>
>

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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