SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: List Help

  1. #1
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,898
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question List Help

    Hey,
    I ahve written a simple unordered list to show news headlines and ahve the following css for the list:

    Code CSS:
    #content li
    {
    border: solid 0px red;
    background-image: url(../img/small_graphics/dotted_arrow.gif);
    background-repeat: no-repeat;
    background-position: top left;
    padding-left: 15px;
    margin-top: 10px;
    }

    That code above is fine and puts the background image where I want it but would like to push the background image down about 2 pixels.

    Anyway I can accomplish this?

    Regards,
    Neil

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use position left top:
    "background-position: 0 2px;"
    Happy ADD/ADHD with Asperger's

  3. #3
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,898
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent Thanks


Bookmarks

Posting Permissions

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