Forums

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

Home Forums CSS Using a background image plus text with tag

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • cre8tive1
    Member

    Hi all,

    I’m trying to assign a background image to an anchor tag, plus text for the link.

  • Subscribe to Blog
  • li a.blog {
    background-position: left center;
    background-repeat: no-repeat;
    padding: 0 0 0 22px;
    background-image: url ("/images/email.gif"); }

    For some reason the browser is not seeing “background-image: url” part of the CSS. When I inspect in Firebug that portion of the style isn’t there.

    Link to Problem Page

    Any input on what I’m missing?

    #50330
    chrisburton
    Participant

    Did you try removing the space between url and (

    ?

    #50322
    cre8tive1
    Member

    OMG. How did I miss that?!

    Thanks Christopher.

    #50323
    chrisburton
    Participant

    Haha, you’re most welcome.

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