List-Style-Position: outside vs. inside | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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