Using CSS for custom bullet points
A short guide on using CSS to style lists and custom bullet points for your website.

Having recently discovered the excellent selection of free bullet images at Stylegala's Bullet Madness, it reminded me that custom bullet points on your lists can be a stylish addition to your website design if used correctly.
Apply CSS to your lists
With CSS you can quickly modify the bullets used on your lists. Using the list-style property you can change the default selection of the bullet point.
<ul>
<li>sub list 2</li>
</li>
<li>list item 2</li>
ul li { list-style:circle; }
ul li li { list-style:square; }
Produces
- list item 1
- sub list 1
- sub list 2
- list item 2
Custom images for bullets
You can also use images instead of the standard bullet point symbols.
ul li li { list-style:url('bullet2.png'); }
Produces
- list item 1
- sub list 1
- sub list 2
- list item 2
If you want more control over how the lists are displayed then you can remove the list-style and use background images and padding to position your bullets and content.
padding:5px 0 0 25px;
list-style:none;
background:url('bullet1.png') no-repeat 0 8px;
Produces
- list item 1
- sub list 1
- sub list 2
- list item 2
These simple examples show how you can quickly change the way your lists look with minimal changes to your CSS.
Lists are also great used in combination with CSS to produce website navigation menus as this article over at A List Apart demonstrates.
CLiK WebTalk is a blog about web design and e-commerce techniques, news and related issues.
Latest Posts
- Limitations of PayPal Website Payments Standard - 09 May 2008
- Free web icons - 25 Apr 2008
- Safari browser for Windows - 25 Mar 2008
- Inspiration for web designers - 20 Mar 2008
- The end of Netscape Navigator - 03 Mar 2008
- Web site colour combinations made easy - 28 Feb 2008
Archive
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 01 | 02 | 03 | 04 | |||
| 05 | 06 | 07 | 08 | 09 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |
