N
N
Nikolai2019-01-30 15:48:36
css
Nikolai, 2019-01-30 15:48:36

How to align inner elements in neighboring blocks?

5c519c6863dda215687684.png
I don't consider the option of hard specifying the minimum height to be good, since there are blocks where all neighboring names fit into one line, and they will have a lot of free space.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2019-01-30
Demidovets @Nik_o_lay

a fairly common task in the frontend - usually solved together with designers, since focusing on neighboring blocks is always a detriment to the current element (when a movie is named in one line, it will in any case differ from the title in 2 or more lines), so the best solution the following has always been considered:
for the heading, we always select a height of 2 lines - everything that is more than 2 lines goes into ellipsis
5c51aa3ea6b88197998358.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question