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

How can I access the actual brand and / or number in the CSS selectors for <ul> and <ol> ? I would like to increase the number of font-size and font-weight numbers / palettes so that my objects stand out more.

+6
source share
2 answers

You cannot select them specifically, but you can style li and wrap the contents of li with span (or any other) and a style that is different.

jsFiddle .

+5
source

Use a display block whenever you create inline elements (for example: <a>, <span> ...) Its secondary importance to remember, but usually people forget it.

0
source

Source: https://habr.com/ru/post/900404/


All Articles