(Site Identification)

'Eye' Focus: Web Support Tutorials

Image Help: Bullets


These images are commonly used to mark the start of a new element of a list or to bring emphasis to an item.

(to Top) Sampling of Bullets

Glossy Balls green, ball_green_icon.gif blue, ball_blue_icon.gif orange, ball_orange_icon.gif pink ball_pink_icon.gif purple, ball_purple_icon.gif white, ball_white_icon.gif yellowball_yellow_icon.gif
Shinny Balls lilac, ball1.gif blue, ball2.gif orange, ball3.gif light green, ball4.gif olive, ball5.gif purple, ball6.gif green, ball7.gif red, ball8.gif gray, ball9.gif steel, ball10.gif
Checkered Balls blue, ball11.gif pink, ball12.gif green, ball13.gif red, ball14.gif purple, ball15.gif
Push Pins blue, 1push.gif cyan, 2push.gif pink, 3push.gif orange, 5push.gif yellow, 6push.gif green, 7push.gif red, 9push.gif
Paw Prints brown, paw_bk.gif blue, paw_bl.gif cyan, paw_cy.gif green, paw_gr.gif light blue, paw_lb.gif orange, paw_or.gif pink, paw_pi.gif purple, paw_pr.gif red, paw_rd.gif yellow, paw_yl.gif
Boxed Rings blue, bullet_blue.gif cyan, bullet_cyan.gif green, bullet_green.gif magenta, bullet_magenta.gif red, bullet_red.gif yellow, bullet_yellow.gif
Miscellaneous new (high), new.gif new (low), new-2.gif exclamation mark, notice.gif orange star, star.gif black ball inset in a box, blackbal.gif gray ball in a box, whitebal.gif an eye ball, eye_bullet.gif

(to Top) Advanced CSS Technique

Instead of simply adding these images to your page to serve as bulleted list replacements, try using an advanced CSS technique. It is a simple matter to replace the normal bullets used in an unordered list with your own graphical bullets.

CSS Coding for the Graphical Bullets: (skip code)
<style type="text/css" media="all"><!--
ul.push{
 list-style-image: url('/PATH_TO_IMAGE/IMAGE_NAME');
}
--></style>

Remember to replace the necessary code pieces for your image rule.

For this example we are using ul.push{ which limits its use to an unordered list defined with a "push" class. This way you can use it where you want but not have it appear for every unordered list. If you prefer it to replace all unordered list bullets simply use ul{ and all bullets will be graphical.

HTML Coding for the graphical bullets: (skip code)
<ul class="push">
<li>Yadda, yadda, yadda...</li>
<li>Yadda, yadda, yadda...</li>
<li>Yadda, yadda, yadda...</li>
</ul>

Example Unordered List using this techique: (skip code)
  • Yadda, yadda, yadda...
  • Yadda, yadda, yadda...
  • Yadda, yadda, yadda...

What's the benefit?

You might think it a waste of effort to code the rule in this maner, after all, the result looks the same. The difference is that when CSS is not supported the HTML rule is then displayed. This is very much preferred over the absense of the desired separation. Small screen devices most often do not support CSS and this method will still provide the desired content separation.

Another benefit to using this approach is that you can now change all the horizontal rule images throughout your site from your style sheet. Imagine changing dozens or hundreds of rules in a large site by changing a few lines of CSS code.


[Updated: Sunday, November 18, 2007]