Log in

View Full Version : header div that needs link in background



soulscriber
03-16-2007, 10:15 PM
Hello,

I have a background image in my header: http://www.raisearoof.com/newsitetesting/index.php

problem is, I need the 'raise a roof' image to link back to the home page.

How can I do that? I know background images can't have links. Does anyone have any suggestions?

Thanks a bunch.

jscheuer1
03-17-2007, 05:05 AM
The division with an id of header could be position:relative; and contain an absolutely positioned linked image (header.jpg). The link and the image's z-index would be less than the division containing the menu which would now need to be absolutely positioned in relation to the header division, not the page as it appears to be now.

The concept here is that absolute positioned elements that are inside relatively positioned elements are positioned in relation to the relatively positioned element.