Forums

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

Home Forums CSS linking a logo to the homepage…

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #33259

    I’m trying to link my main logo to my homepage but I’m struggling to do this successfully….. has any one got any suggestions?

    #82447
    chrisburton
    Participant

    HTML

    Graphical Bliss

    CSS

    h1 {
    width: 200px;
    height: 200px;
    background: url('image/path.png');
    text-indent: -9999px;
    }
    #82448
    TheDoc
    Member

    I wouldn’t use the h1 tag unless you are already on the home page.

    Something like

    #logo {
    display: block;
    width: 200px;
    height: 200px;
    background: url('image/path.png');
    text-indent: -9999px;
    }
    #82451

    thanks for the suggestion but I can’t seem to retrieve my image

    #82452
    TheDoc
    Member

    Do you have a link to the site? You probably haven’t put the path to the image in properly.

    #82453

    thanks thedoc that worked great but ive lost my main body content

    #82360
    TheDoc
    Member

    “Do you have a link to the site?”

    #82361

    i’ll just upload the site since its not live

    #82455

    http://www.corriandjoel.co.uk heres the link but its blank

    #82456
    TheDoc
    Member

    You didn’t close your logo div. Your HTML is wrong as well.

    Remove this:

    And add this:

    Then in your CSS file, remove this:

    #logo h1 {
    text-indent: -99999px;
    }

    #logo img {
    margin-top: -35px
    }

    And add this:

    #logo {
    display: block;
    width: 200px; /* Put width of image */
    height: 200px; /* Put height of image */
    background: url('image/path.png'); /* PUT THE PATH TO YOUR IMAGE HERE */
    text-indent: -9999px;
    }

    #82457
    TheDoc
    Member

    That is just for starters. Next:

    You are linking to a stylesheet that doesn’t exist:

    You don’t have a single closing div. What opens must also close!

    #82460

    thanks for your help much appreciated

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘CSS’ is closed to new topics and replies.