I need to center the content of an li
vertically so what i did is a lineheight
and it works but the problem is that when I have multiple lines, this technique no longer works and i can't modify
the html
since it's a constraint given by the professor. So i really ran out of solutions.
Here is the HTML
And the Css
li
{
list-style-type:none;
border-bottom: 1px solid #e0e0e0;
height: 55px;
display: inline-block;
vertical-align: middle;
width: 100%;
line-height: 55px;
}
ul
{
list-style : none;
}
<ul>
<li>
The 2015–16 UEFA Champions League was the 61st season of Europe's premier club football tournament organised by UEFA, and the 24th season since it was renamed from the European Champion Clubs' Cup to the UEFA Champions League
</li>
</ul>