Layout: Div elements as hyperlinks?started by Kaa on Aug 28, 2004 — RSS Feed
Is there any way to get an empty div to act as a hyperlink?
Well, when I say empty, it's got a specified height, width, and it's got a background image, so it looks like a div with an image inside it.
I know there is a way of doing it by wrapping round the "A HREF" tag around the div in question, but it leads to the css not validating and also IE behaves a bit funny.
Put a clear GIF inside the div and give it a link.
You must login to reply