R
R
Roman Mirilaczvili2015-11-16 19:48:33
css
Roman Mirilaczvili, 2015-11-16 19:48:33

How to align a subbox to the bottom line of two boxes?

There is some Bootstrap 2.3 code sample at scratchpad.io/grumpy-mountain-761 You
491f1932919547689f292bd54f3d994a.png
need to align the boxes on the bottom line of the two so that the Info buttons are at the same level, horizontally.
So that regardless of the size of the image and the length of the button title, the date and geo-location are "fastened" at the bottom.
I tried to play with position, bottom, but it didn't work - the whole layout breaks.
Here is a bit of CSS to give you a general idea:

.align-center {
  text-align: center;
}
.thumbnail a img {
  display: block;
  max-height: 250px;
  margin: 0 auto;
}

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Ksenia Mikhailova, 2015-11-17
@arizona

You can make them inline-blocks with vertical-align: bottom, but then the top border will walk.
In such cases, js usually assigns all blocks in one line a height of one height.

T
Timur TT, 2015-11-16
@timurtt

The problem is block height. And pictures ... css send.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question