Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Link logo to homepage

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29246
    guirigales
    Member

    Hello,

    I see that a few people have had problems with this but I havent been able to sort it… and I know its something silly.

    http://www.xxx.co.uk/projects.php

    I dont know what I have done wrong but the logo wont link to the homepage.

    Heres the html:

    Code:

    heres the css:

    Code:
    #logo{
    background-image: url(../images/logo.png);
    background-repeat: no-repeat;
    margin-top: 0;
    margin-left: -3px;
    width: 168px;
    height: 253px;
    float:left;
    clear: both;
    z-index: 2000;
    cursor: pointer;
    text-indent: -9999px;
    padding-right: 50px;
    }

    Any help appreciated.

    Thanks all.

    #77104
    virtual
    Participant

    Try putting the a tags around the h1 logo tags.

    #77108
    guirigales
    Member

    I tried that and it worked but its comes back as invalid code. I wanted to keep it standards approved.

    #77038
    TheDoc
    Member

    Put the id of #logo on the anchor tag, not the <h1> and give it a display: block;

    #77039
    guirigales
    Member

    thats done the job but the whole page has been pushed down for some reason

    #77040
    guirigales
    Member

    If i remove the H1 it goes back to normal

    #77041
    guirigales
    Member

    Sorted!

    I had to remove the default margin on the H1.

    Many thanks for your help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.