WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: spacing -   versus clear images

for

From: Helen A
Date: Mar 7, 2006 10:00AM


At 16:04 07/03/2006, Karl Groves wrote:
><snip>
>Instead of &nbsp;,
>spacer images, or proprietary markup, why not a little CSS margin or
>padding? All modern user agents support it, it is accessible, and much
>easier to maintain.

In that case, how do you code a right-hand padding to a <li> in CSS?

I have found out how to adapt the <li> tag to show a custom image
instead of the standard bullets but can't pad it to keep a visually
pleasing gap between the bullet and the text without resorting to a
spacer image.

Helen