Geoff Krajeski wrote:

> I am looking to style an ordered list with colored blocks with a number
> inside.  How can I get an orange block with a white number inside
> without turning the list item text white as well?
> 
> See http://krajeski.net/list_item.jpg

You can use images as Zoe has just stated, or use a dl (definition list) 
<http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/list/dl.cfm> 
with the numbers as terms. This will allow you to style text-numbers 
instead of using images.

It's not a perfectly semantic use, and you won't be able to get 
auto-numbering from the HTML, but neither would you from a ol with images.

Regards

Jesper Brunholm
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to