M
M
MRcracker2019-03-03 17:17:08
css
MRcracker, 2019-03-03 17:17:08

How to make a list for the entire width?

There is a list

<ul>
 <li><a href="#">1</a></li>
 <li><a href="#">2</a></li>
 <li><a href="#">3</a></li>
</ul>

Tell me how to make the menu stretch to the entire width of the page, and the text in li is centered?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew9205, 2019-03-03
@Andrew9205

For li:
text-align: center;
For ul:
width: 100%;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question