I have a menu with different list items of varying sizes. The items in the menu are dynamically sized, so if i resize viewport they scale down.
How can i make them to be always the same height? Taking the height of the biggest list item.
body{
background-color: darkslategrey;
color: white;
}
ul {
height: 100px;
list-style: none;
}
span div {
width: 5rem;
}
li {
display: inline-block;
text-align: center;
border: 1px solid cyan;
/* transform: skewX(30deg); */
margin: 0;
padding: 8px 18px;
}
li span {
display:inline-block;
/* transform: skewX(-30deg); */
}
p {
margin: 0;
}
h1 {
margin: 0;
}
.c {
font-size: 4rem;
}
<ul>
<li><p>babboon</p></li>
<li>
<span>
<div><h1>A</h1></div>
<p>anton</p>
</span>
</li>
<li>
<span>
<div><h1>B</h1></div>
<p>Bert</p>
</span>
</li>
<li>
<span>
<div><h1 class="c">C</h1></div>
<p>conner</p>
</span>
</li>
</ul>