S
S
Stepan2018-07-24 12:50:40
css
Stepan, 2018-07-24 12:50:40

How to align blocks and their contents?

I've tried everything, both height:100% and stretch(flex).
nac.epro.kz/telo
5b56f5d3934a3810961411.png
ps: my experience in layout is 2 weeks.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Timofeev, 2018-07-24
@webinar

Option 1: you need to set the min-height for the title. It should be equal to the height of 1 line multiplied by 2 or 3, to taste.
Option 2: a picture on the background with a width of 100% horizontally. We do not touch the title, but the link with absolute positioning down. But the card will have to set a fixed height.

S
Sergey, 2018-07-24
@Hando

Set a fixed height for the header block. Center the headline in height.

N
netrox, 2018-07-24
@netrox

Add:

.blog-telo > div{
   margin-bottom:20px;
}
.blog-telo .items-row .item{
   min-height:100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question