Reply to Re: Anchor outside div not validating

Your name:

Reply:


Posted by Fister on 01/08/08 22:17

Hello Ben,

> You could use span instead of div, and set
>
> .container, .heading, .text { display: block }

That crossed my mind too but I thought there might be a better solution.

> The caveat is that this won't look good on non-CSS browsers.

Non-CSS browsers? That would be very old browsers?

> Or you could use several <a> elements-- one inside each of the block
> elements.
>
> <div class="heading"><a href="page.html">Heading</a></div>
>
> etc.
>
> How are you doing the colour change? If you use a:hover { color: green
> } then it should all go green when you hover on any part of it, since
> when you hover on something you also hover on its descendents.

I was using a:hover but if I have several anchors I'll have to use JavaScript
to have them all change color when the mouse is above any one of them(?).

[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

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