PDA

View Full Version : How would I do this without Java


urbanrays
04-04-2011, 03:57 PM
Hi

I have just done a site, tried to validate it failed badly, I was not aware that this was not allowed



<li>
<a href="link">
<h2>Header Here</h2>
<p>Text Here</p></a>
</li>



And this is what I am trying to achieve

http://www.urban-publications.co.uk/test/off.gif

and whenever I roll the mouse in the blue area I wanted it to change to this

http://www.urban-publications.co.uk/test/on.gif

I have obviously found that I cannot have <h2> or <p> within an <a> tag

So how would I go about achieveing this keeping the <h2> <p> tags and without using java

Thanks in advance

DWcourse
04-04-2011, 04:09 PM
replace the h2 and p tags with spans and apply class rules to them.

urbanrays
04-04-2011, 04:38 PM
Cheers DWCourse much appreciated