Results 1 to 4 of 4

Thread: image link to homepage not working

  1. #1
    Join Date
    May 2012
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question image link to homepage not working

    Hi,

    My image link to homepage in the top left corner of this page is broken. Can anyone tell me why and how to fix it?

    my broken code:
    HTML Code:
    <a href="/healthtracker/index.php">
                    <img src="img/htlogo.png" width="150" height="100" />
                </a>
    Thanks.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there jasont,

    the cause of your problem is the negative "z-index" value here...
    Code:
    #page {
     position: relative;
     background-color: #FFFFFF;
     margin-left: auto;
     margin-right: auto;
     width: 960px;
     font-family: sans-serif;
     z-index: -2;
    }
    
    Set it to zero or remove it altogether.

    To get your page to validate you should add alt="" to the img attributes, and remove this...
    /***********************************************
    * Gooey Menu Script (c) Dynamic Drive (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/ for this script and 100s more.
    ***********************************************/
    ...from between the "script" tags.

    Though, to be legally correct it must be placed within the gooeymenu.js file itself.

    coothead
    Last edited by coothead; 06-02-2012 at 09:47 AM. Reason: spelling mistake

  3. #3
    Join Date
    May 2012
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Smile

    A very big thank you ! Works like a charm !

    Regards,
    JT.

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're very welcome.
    coothead

  5. The Following User Says Thank You to coothead For This Useful Post:

    jasont (06-02-2012)

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
  •