Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS button image only appering on 1st button

    Hi,

    I made a small CSS rollover button thing look here to see it, http://www.avi.ie/12/home.html

    How do i get the background image to appear on all buttoms.

    the CSS i'm using for this little part is

    Code:
    ul#navlist li#active a
    {
    background:url(55.jpg);
    color: #800000;
    }

  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Code:
    ul#navlist li#active a<b>:hover</b>
    {
    background-image: url(55.jpg);
    color: #800000;
    }
    That will load the image one the hover class of that section. Change the 55 to whatever image you want to be the hover. I guess that's what you're asking as I couldn't see any problems with your page otherwise?
    Last edited by ahallicks; 12-15-2006 at 04:44 PM.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you look at the page you'll see the image 55.jpg only appears in the 1st link/button i want that image on all buttons.

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got it worked out,

    thanks.


  •  

    Posting Permissions

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