Posted By

bcounts on 10/08/14


Tagged

space text background ul li before list-style


Versions (?)

List image - space before text


 / Published in: CSS
 

URL: http://alistapart.com/article/taminglists

Using a combination of background and padding styles to modify the way list image styles are applied.

  1. li {
  2. background: url(images/bullet.gif) no-repeat left top;
  3. padding: 3px 0px 3px 10px;
  4. /* reset styles (optional): */
  5. list-style: none;
  6. margin: 0;
  7. }

Report this snippet  

You need to login to post a comment.