I am trying to make these blocks of information the same, regardless of the number of words they store. As you can see from the example, when one block has less text than the other, it becomes a little smaller and the other remains of a different size.
Now my question is: how to ensure that these blocks are the same size regardless of its contents or image? I am also going to use another pair right below them.

Here is the CSS code:
.bottomContainers{
position: absolute;
margin-left: 0%;
display: inline-box;
}
.container{
max-width: 30%;
max-height: 30%;
margin-top:5%;
margin-bottom: 5%;
margin-left: 10%;
padding-left: 2%;
padding-right: 2%;
padding-bottom: 2%;
background-color: #ecf0f1;
color: grey;
display: inline-block;
border-radius: 5px;
border-bottom: 2px solid grey;
}
Here is the HTML code:
<div class="bottomContainers" role="moreInfo">
<div class="container" id="firstContainer">
<br />
<center><img src="img/map.png"></center>
<br>
<article>
Some random text is in this block, It doesnt size like the next one
</article>
</div>
<div class="container" id="firstContainer">
<br />
<center><img src="img/money.png"></center>
<br>
this is another block which also doesnt scale to the other block regardless of text inside of it
</div>
What could I have done wrong here?
source
share