Results 1 to 2 of 2

Thread: header div that needs link in background

  1. #1
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default header div that needs link in background

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,920
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •