To get started on a free estimate call (503) 928-4334
A breakdown on how to create consistent list indents with css.
For the purposes of demonstration I will add thin gray borders and some spacing to separate the lists and list items.
ul.list1 {
list-position:outside;
padding-left:1em; /* position the bullet inside the text block area */
list-style:disc; /* your preferred list style */
}
.list1 li {
padding-left:10px; /* desired spacing between text and bullet */
}
Here's what the lists look like.
By using the backgound images on list items you can control the spacing and position of the bullet relative to the list text.
ul.list2 {
list-style:none; /* remove any default list item character */
}
.list2 li {
padding-left:25px; /* desired spacing between text and bullet */
background-image:url("/sites/default/files/images/article/55/bg_li_star_12px.png"); /* the image */
background-repeat:no-repeat; /* prevent the image from repeating */
background-position:0px 3px; /* position of the background image */
}
Here's what lists look like with background images. The default list-style is list-style-position:outside;.
Add new comment