Jump to content

Div Hyperlink


millercj

Recommended Posts

you could place the entire contents inside an anchor tag - provided that the inner html is permissable...

That would not be XHTML strict though would it?

 

I tired that before and got an error upon testing.

 

The other way I would use is to set the class for the anchor as:

 

.anchor{
display:block
}

 

with the height and width set to the size of the div

Link to comment
https://forums.phpfreaks.com/topic/98429-div-hyperlink/#findComment-505541
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.