Highlight text in unordered lists using CSS

I have an unordered list of HTML and I use CSS to create everything. When a text has multiple lines, it starts at the point of the marker. Is there any way to do this after the marker position?

enter image description here

+6
source share
4 answers

Do you want to use list-style-position:outside on your <ul>

Jsfiddle

+12
source

Try using this property.

 li { list-style-position:outside; } 

or inside one or the other. This should fix the problem.

+1
source

Of course, quite easy. Within the <li> framework, do the following:

 <li> <div>Schnelles Importieren von Images As Planes</div> </li> 
0
source

This is the most concise CSS using short property syntax:

  ul { list-style: disk outside; } 
0
source

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


All Articles