List-Style-Position: outside vs. inside | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

List-Style-Position: outside vs. inside

What is the difference between list-style-position: outside; and list-style-position: inside? Also, is there a certain time when I should use one over the other?

13th Mar 2018, 3:42 PM
Nicholas Donatelli
Nicholas Donatelli - avatar
1 Resposta
+ 1
List-style-position inside is if you want the bullet to be a part of the text. Youā€™ll see it if you gave the element a border or padding. List-style-position outside is default and the bullet is not part of the text. The biggest time it makes a difference is if youā€™re using border or padding and then, itā€™s your personal preference.
13th Mar 2018, 4:00 PM
Ariela
Ariela - avatar