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.
2 Respostas
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;
}
0
thanks, I'll try it!