/    Sign up×
Community /Pin to ProfileBookmark

Styling Ordered List Marker

I have an ordered list, but I want to know how I can style the number marker before each item (i.e. make it larger, change the color, make it bold, etc.). Any idea how to do this?

[code=html]
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>How can I change the style of the numbers before each li ?</li>
</ol>
[/code]

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@ryanbutlerAug 12.2008 — You can write this declaration:

[CODE]ol{
color:blue;
font-weight:bold;
}[/CODE]


That will style the number and text. I'm not sure how to do just the number or if there's even a way.
Copy linkTweet thisAlerts:
@CentauriAug 13.2008 — Styling the <ol> will affect the number, then you style the <li> to override the <ol> style.
Copy linkTweet thisAlerts:
@ray326Aug 13.2008 — Man, I hope I can remember that one.
Copy linkTweet thisAlerts:
@bathurst_guyAug 14.2008 — Running out of RAM Nog? ?
×

Success!

Help @geekblake spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...