Css background property

Discussion in 'CSS' started by Aertcz, Mar 23, 2009.

  1. #1
    First, take a look here:
    www.2dware.com/template/cmbc.html
    then take a look at the css here:
    www.2dware.com/template/cmbc.css

    Notice how when you scroll around the above buttons, they flash nicely when you hover over them. Now scroll over the side buttons, notice how the background only aligns around the text. The two sections of the css you will be dealing with is .navigation. .navigation2 is the above buttons.

    Also, if you don't mind, try throwing me a rating for my first real website design. Any pointers?
     
    Aertcz, Mar 23, 2009 IP
  2. ivogue

    ivogue Peon

    Messages:
    246
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    replace your


    .navigation a:hover, .navigation a#active {background: url('img/nav4b.PNG');}
    Code (markup):
    With:

    .navigation a:hover, .navigation a#active {
    background:transparent url(img/nav4b.PNG) repeat scroll 0 0;
    display:block;
    Code (markup):
     
    ivogue, Mar 23, 2009 IP
  3. Aertcz

    Aertcz Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Wow, thanks a ton! I'll try and get some money onto my paypal to send over a little gift to you. Send me your paypal address in a pm. Thanks a ton!
     
    Aertcz, Mar 23, 2009 IP
  4. ivogue

    ivogue Peon

    Messages:
    246
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you're welcome :)
     
    ivogue, Mar 23, 2009 IP