Do you have a question? Post it now! No Registration Necessary. Now with pictures!
October 17, 2008, 1:24 am
rate this thread
I am displaying some statistics and I want to emphasize the values.
<li>30% of posts are recent</li>
<li>There are 20% of posts untagged</li>
I might want to change font, size, etc ...
Using a span would be the best option?
<li><span>30%</span> of posts are recent</li>
<li>There are <span>20%</span> of posts untagged</li>
And then apply a class to it?
You would not need to apply a class to it if there were no spans in list
items elsewhere which you do not want to style similarly.
Or you could class the ul element
If you just want to emphasise some text, you could use <em> instead.
And, of course, you can style em in your css sheet.