/ Published in: CSS

Again since a background image doesn’t create a new CSS box you can’t directly wrap a link around it. You can either wrap the link around the containing element or wrap the link around all the content inside the containing element.
Either will essentially let someone click your background image as though it were a link.
Expand |
Embed | Plain Text
1 </pre> 2 <div id="bkgd-image">your content here</div> 3 <pre></pre> 4 <div><a> 5 6 your content here 7 8 </a></div> 9 <pre>
You need to login to post a comment.