I have a wrapper <div class="large">
that contains 3 columns (<div>
s). All <div>
s including a wrapper <div class="large">
have fixed height and width.
My problem is that when I start to fill these 3 columns with different content then they tends to shift down depending on their content.
How do I maintain default position of these columns inside wrapper <div class="large">
no matter what they contain?
Here is my Codepen: https://codepen.io/anon/pen/Qapapx
.large {
border: 1px dashed;
width: 1024px;
height: 250px;
margin: 0 auto;
text-align: center;
position: relative;
}
.side {
width: 300px;
height: 220px;
border: 1px dashed blue;
display: inline-block;
}
.main {
width: 342px;
height: 250px;
border: 1px dashed orange;
display: inline-block;
}
<div class="large">
<div class="side">
efsdfvsdf
</div>
<div class="main">
dsfgfdsdfsdffds<br> sdddsds
<br> dsssdfsdsdds
</div>
<div class="side">
sdfsdffds<br> sdfads
</div>
</div>