我有 3div
秒。div
如果其他高度调整,我怎样才能使它们相等。我希望我所有的div
s 都调整它的高度,即使它们的内容更少。就像在图像中一样,即使div
没有数据也必须等于其他数据,并将读取更多设置在底部。
HTML:
<div class="column-wrapper">
<div class="column-small border border-top">
<h3>Features</h3>
<ul>
<li>Code blocking</li>
<li>Code Wrapping</li>
<li>Code Killing</li>
<li>Code Sleeping</li>
</ul>
<span><a href="#">Read more</a></span>
</div>
<div class="column-small border border-top">
<h3>Modules</h3>
<ul>
<li>Barking Around The house</li>
<li>Loving the Cats</li>
<li>Floating The points</li>
<li>Coding The Sleepers</li>
</ul>
<span><a href="#">Read more</a></span>
</div>
<div class="column-small border border-top">
<h3>Idont knows</h3>
<span><a href="#">Read more</a></span>
</div>
</div>
CSS:
.column-wrapper {
padding-top: 20px;
text-align: center;
vertical-align: middle;
width: 100%;
}
.column-wrapper div {
display: inline-table;
margin: 2px;
}
.column-small {
padding: 10px;
width: 30%;
min-width: 250px;
height: auto;
}
.column-small span {
float: right;
}
.column-small ul {
margin-top: -10px;
width: 100%;
max-width: 240px;
}
.column-small ul li {
text-align: left;
}
.column-small li {
list-style: none;
padding: 5px;
text-indent: -30px;
word-wrap: break-word;
}