I need to make a whole div, become a link.
i currently have the code
but this does not validate as xhtml strict.
putting the link in the div will only make the text a link and not the whole div.
the reason i've got the div in there is becuase i use it to create a box and add a colored background to this.
I also need to be able to achieve the same thing, with a list item.
e.g. I currently have
which does not validate
i currently have the code
Code:
<a href="temp.html"><div>some text</div></a>
putting the link in the div will only make the text a link and not the whole div.
the reason i've got the div in there is becuase i use it to create a box and add a colored background to this.
I also need to be able to achieve the same thing, with a list item.
e.g. I currently have
Code:
<ul> <a href="temp.html"><li>item 1</li></a> <a href="temp2.html"><li>item 2</li></a> <a href="temp3.html"><li>item 3</li></a> </ul>
Comment