开发者

Equal height divs with footer always at bottom of tallest div

I was wondering if this were possible, and if it is the best way to go about this: example image (since I'm not allowed to post pics yet ^^)

So, not only does each column have to be of equal height, but each column also has its own individual footer.

I saw this SO post — how could I rework this technique to apply to the bottom of the divs and not the bottom of the window?

Edit: each column will have content that will constantly change and be of variable height. I'm thinking I could just figure out the eq开发者_如何学Goual height columns first, then just absolute position a footer div within those columns. Does its parent div then have to be position: relative?


Looks like a nested div in each that has the same properties. So each outer div is the same size, and so do the inside div.

.outer
{
height:500px;
float:left;
margin-right:20px;
}

.inner
{
height:30px;
width:100%;
margin-top:-470px;
}

<div class="outer">
<div class="inner">

</div>
</div>

Didn't test this; off the top of my head!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜