[thelist] Re: CSS to bold *just* the number on an <li>

Geoff Sheridan web2k2 at premonition.co.uk
Thu Oct 17 13:09:01 CDT 2002

I think you can do it with a <FONT> tag. Off-hand it'd be something like:

I think. That'd be OK for your site, aadvark? It's not like you're
not fussy about your HTML or anything....

:) g - irony filter in place

At 1:25 pm -0400 17/10/02, Clive R Sweeney wrote:
>At 17:40 2002.10.17, aardvark wrote:
>>i have a list...
>>i want the numbers to be bold, but not the text...
>>i feel like an idiot because i can't figure out the CSS necessary to do
>>it... although i thought i had done it before, i was wrong...
>Apparently this is easy to do in NN4, where "Styling an <li> directly
>only styles the marker." ("Cascading Style Sheets: Separating Content
>from Presentation").
>But as pandion has suggested the only way I can see to accomplish this
>for all browsers is to style the list with a font-weight of bold and
>then apply the normal font-weight to the content of each list item.
>However - and please correct me if I'm wrong - I think it's better to
>use a <span> within a list item than a <p>.
>... clive
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list