Naftuli Kay
Naftuli Kay

Reputation: 91660

Styling bullets and numbers in <ul> and <ol>

How can I get access to the actual bullet and/or number in CSS selectors for <ul> and <ol>? I'd specifically like to increase the font-size and font-weight of the numbers/bullets to make my items stand out more.

Upvotes: 6

Views: 488

Answers (2)

SiriusKoder
SiriusKoder

Reputation: 341

Use display-block whenever you are styling inline elements.(e.g: <a>, <span>...)Its a minor thing to remember but usually people forgot it.

Upvotes: 0

alex
alex

Reputation: 490303

You can't select them specifically, but you can style the li and wrap the li's contents with a span (or whatever) and style that differently.

jsFiddle.

Upvotes: 5

Related Questions