Skip to main content

Forums

This topic contains 2 replies, has 0 voices, and was last updated by  nickcallaghan 11 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22832

    I’m trying to set up a menu with a background image applied to the anchor link via a class. The anchor link seems to have the correct dimensions but no matter what i do i can’t get the background image to display. Am i missing something fundamental? Any help much appreciated!

    Thanks,

    Nick

    CSS:

    Code:
    ul#menu {
    list-style:none;
    }
    ul#menu li {
    display:inline;
    }
    ul#menu li a {
    display:block;
    width:150px;
    height:120px;
    float:left;
    }
    ul#menu li a.home {
    background-image:url(images/menunormal_01.png);
    }
    ul#menu li a.about {
    background:url(images/menunormal_02.png);
    }
    ul#menu li a.contact {
    background:url(images/menunormal_03.png);
    }

    html:

    #48146

    box
    Member

    This reply has been reported for inappropriate content.

    You haven’t applied any classes to the links ;)

    #48149

    schoolboy error :oops: ! thanks for that nick

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star