I'm still having problems with a long-standing problem. To be brief, there are 3 list items on my site in an unordered list. My demo lists green boxes. Each list item contains an image and 3 divs (title, location, price field). I only deal with the headline. My demo site is here:
You can see how each heading has a different text length, which leads to a decrease in location / price. I colored the headline to be gray so you can see them. I want all the heights of the heading to match the height of the largest heading. I added a screenshot of what I wanted.
Here's a demo link in CodePen - can you customize it?
http://codepen.io/anon/pen/azJKYM
The main unordered list item (contains all 3 green boxes) has CSS:
.list
{
width: 100%;
overflow: hidden;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
In a separate list item (green square) there is css:
.list__item
{
width: 32%;
float: left;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-top: 0.625em;
padding-bottom: 0.825em;
margin-left:1%;
margin-right:0%;
position:relative;
line-height:40px;
}
and the header has CSS:
.titlebox{
width: 80%;
height: 10%;
display: inline-block;
font-size: 4.2vh;
font-family: Garamond;
color: #002000;
text-align: center;
line-height: 35px;
font-weight:bold;
margin-top: 5%;
margin-right: 10%;
margin-bottom: 5%;
margin-left: 10%;
background-color:grey;
}
Thanks for any help! Screenshot with the desired result below.

source
share