View Single Post
Old 09-12-2007, 03:26 PM   #2 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Rather than using the list-style-image property, you can set some (left) padding on the li elements and apply the bullet image as a background. With this technique you could have right-aligned bullets, if you wished. :)

Code:
#sidebar .sidebar-list {
    position: relative;
    left: 33px;
    margin-top: 10px;
    list-style: none;
}

#sidebar .sidebar-list li{
    margin-top: 15px;
    padding-left: 20px;
    background: transparent url(images/bullet.gif) no-repeat 0 0;
}
Salathe is offline  
Reply With Quote