Page is a not externally linkable
- Code, Content, and Presentation
-- CSS
---- hyperlinking a div


benihana - 1:17 pm on Nov 9, 2012 (gmt 0)


how about...

HTML:

<div class="foo">
<p>Content...</p>
<p>Content...</p>
<a href="#">link</a>
</div>

CSS:

div.foo {
position:relative;
width:100px;
height:100px;
}
div.foo a {
position:absolute;
top:0;
left:0;
display:block;
width:100%;
height:100%;
z-index:199;
}


Thread source:: http://www.webmasterworld.com/css/4513519.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com