1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

css rollover images not working...

Discussion in 'CSS' started by NewComputer, Jul 4, 2005.

  1. #1
    I am trying to do a css image rollover, but it won't display the images... Here is the code:

    #sellers {
    display:block;
    background-image: url(images/sellersoff.jpg)
    width:162px;
    height:50px;
    padding:0;
    margin:0;
    }

    #sellers a{
    display:block;
    background-image: url(images/sellersoff.jpg)
    width:162px;
    height:50px;
    padding:0;
    margin:0;
    }

    #sellers a:hover{
    background-image: url(images/sellerson.jpg)

    }

    <td id="rollimage"> </td>

    Could it be that the size is the exact same as the image? I am stumped. Thanks in advance...
     
    NewComputer, Jul 4, 2005 IP
  2. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You forgot the ; after the url(images/whatever.jpg) part ;)


    Josh
     
    Josh, Jul 4, 2005 IP
    Smyrl likes this.
  3. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #3
    Thanks Josh,

    I had actually figured it out right away. It was something with my cache on my localhost. Anyways, it works now...
     
    NewComputer, Jul 4, 2005 IP
  4. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ok.. glad it works :)

    Yeah, caching is a problem for me as well.. I'm wondering why the heck a certain code isnt working, and its because the browser isn't getting it :p I probably should set a no-cache meta tag on all the sites that are still under devolpment.

    Josh
     
    Josh, Jul 5, 2005 IP