0

How can I center an unordered list <ul>?

I tried to do it by doing this <ul align="center" > and it worked but the dots or black circles did not align.

29th Jun 2018, 1:19 AM
Brayton Maccoy Artola
Brayton Maccoy Artola - avatar
2 ответов
0
That just centers the text only! You'd also need to manually center the bullets! Here's a way in CSS: ul { text-align: center; } ul li { display: inline-block; }
29th Jun 2018, 1:35 AM
apex137
apex137 - avatar
0
thanks, I'll try it!
29th Jun 2018, 1:37 AM
Brayton Maccoy Artola
Brayton Maccoy Artola - avatar