N
N
Nikita Ivanov2015-09-28 18:12:32
css
Nikita Ivanov, 2015-09-28 18:12:32

How to fix parent block height with content?

There is a block with the main image of the product, inside it is another block with additional images. For the first block, you need to make a border of a certain color, while adding. pictures must also be inside this border. I did this using padding-bottom, but the problem is that each product has a different number of images and it turns out extra empty space. For example, one position has 6 pictures, the other has 3. How to make sure that there is no extra space? Seems like a common problem, but I can't figure it out. Here is the site itself: lozhki-luzhniki.ru/upakovka-pod-lozhki.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey B., 2015-09-28
@andykov

Change the padding to overflow: hidden;
padding can be left about 20px from the bottom.
ps layout is bad, the flow needs to be cleared.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question