I am struggling to ensure uniform size for these information blocks regardless of the amount of text each one contains. In the current setup, when one block has less content than the other, it appears smaller while the other remains a different size.
My main goal is to have these blocks maintain the same size regardless of their content or any images included within. I plan to use another set of blocks right below these as well.
This is the CSS code snippet:
/***********All containers**************/
.bottomContainers{
position: absolute;
margin-left: 0%;
display: inline-box;
}
/**********Small Containers*************/
.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;
}
This is the HTML code snippet:
<div class="bottomContainers" role="moreInfo">
<!--Small Inner Containers for Information-->
<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 be causing this inconsistency in size?