I am trying to make the items in a vertical list the same height. Like this?
However, I am having problems making the items the same height. So far I have created this:
following code snippet can give an overview of what I am trying to achieve.
html {
font-family: 'Rubik', sans-serif;
}
ul#sectors {
list-style-type: none;
padding-left: 0;
}
ul#sectors>li {
background: #08455C;
color: #fff;
cursor: pointer;
width: 120px;
border-radius: 0;
position: relative;
font-size: 16px !important;
text-transform: capitalize;
text-align: center;
display: inline-block;
margin-right: 10px;
margin-bottom: 10px;
}
ul#sectors>li>p {
margin: 20px 0;
}
.center {
text-align: center;
}
<div class="center">
<ul id="sectors">
<li>
<p>All</p>
</li>
<li>
<p>Business <br>Support</p>
</li>
<li>
<p>Creative</p>
</li>
<li>
<p>Cybersecurity</p>
</li>
<li>
<p>Engineering</p>
</li>
<li>
<p>Finance</p>
</li>
<li>
<p>Hospitality</p>
</li>
<li>
<p>Information Technology</p>
</li>
<li>
<p>Misc.</p>
</li>
<li>
<p>Sales</p>
</li>
<li>
<p>Technical</p>
</li>
</ul>
</div>
The codepen to my problem is https://codepen.io/mrsalami/pen/XxmVRN