|
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(?).
Navigation:
[Reply to this message]
|