Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Margin or padding in <li>?

MarcelE January 21, 2016
How it is possible to change the distance between the list items?
Margin or padding is not working. Any ideas? 

Bildschirmfoto 2016-01-21 um 15.58.22.png

2 answers

0 votes
MarcelE January 21, 2016
ul li {
	line-height: 50%;
}

That was also my thoughts but it had no effect and I don't want to add <divs> around the list.

Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2016

That totally worked for me, as did just ul (without the li).

0 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2016

Just add a CSS macro:

li {
line-height: 200%;
}

You could also put each list in a div macro and have the CSS change the line spacing of each div individually by targeting the class of each div.

.tight {
line-height: 70%;
}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events