Code:
div { background: #ff9438; height: 50px; border-radius: 10px; } ul { height: 100%; text-align: center; } li { margin: 0; width: 200px; height: 100%; display: inline-block; color: #fff; font-family: sans-serif; font-size: 1.5em; font-weight: 600; } li:hover { background: #f2efef; color: #bcbcbc; } <div> <ul> <li>MENU1</li> <li>MENU2</li> <li>MENU3</li> <li>MENU4</li> </ul> </div> It is necessary:
- The text inside
liis centered. I can not understand how this can be done as simply as possible (not counting the manual selection ofpadding-top). - How can I stretch the text to the full height inside
li?