I have the following CSS and HTML codes to maintain the same width 3 columns. css file is
* {
box-sizing: border-box;
}
.column {
float: left;
width: 33.33%;
padding: 10px;
height: 100px;
}
.column2 {
float: left;
width: 33.33%;
padding: auto;
height: 800px;
}
.row:after {
content: "";
display: table;
clear: both;
}
html file is,
<h2>Three Equal Columns</h2>
<div class="row">
<div class="column" style="background-color:#aaa;">
<h2>Column 1</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#bbb;">
<h2>Column 2</h2>
<p>Some text..</p>
</div>
<div class="column" style="background-color:#ccc;">
<h2>Column 3</h2>
<p>Some text..</p>
</div>
</div>
now I need keep all column tag data in same potisions. how could I do this using my css file? edit screen shot ![some screen shot ]1
tag data in same positions in the columns. as an example if more content include in
tag then other columns
tag data position may change (not in same line to other column position )
– sign458 Apr 09 '20 at 04:34