K
K
keche2017-08-01 10:01:24
css
keche, 2017-08-01 10:01:24

How to push a block to the bottom of another block without flexbox?

How to push a block to the bottom of another block without using flexbox?
Attached is a visual example.
93ca041e9c0948a9ad71bf5dbd43ed4d.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
George Postoronca, 2017-08-01
@georgepostoornca

via absolute

.parent {
    position: relative;
}

.block {
   position: absolute;
   bottom: 0px;
   left: 0px;
   right: 0px;
}

N
nonamich, 2017-08-01
@dimaeromin

<div class="container" style="min-height: 250px;">
    <span>container</span>
    <div style="position: absolute; bottom: 0;">
        <div class="block1">block1</div>
        <div class="block2">block2</div>
   </div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question