Wrapping a div in an anchor tag
Wrapping a div in an anchor tag
Out of context: Reply #10
- Started
- Last post
- 10 Responses
- lukus_W0
Change your markup to...
<div class="homeThumb">
<a class="roll" href="">
<img src="images/thumb_3.jpg" width="182" height="110" alt="thumb" />
</a>
<h2>Title goes here</h2>
</div>Then using CSS
1. set 'position: relative' on the containing div
2. make your anchor 'position: absolute', display it as a block-level element and make it equal width / height as the div.
3. set the z-indexes to place the anchor element below the h2 and img elements