D
D
Denis Sopko2019-05-15 19:33:31
css
Denis Sopko, 2019-05-15 19:33:31

How to set block height correctly?

I'm making up the main slider on the page. What is the correct height for this block? Content should set height? That is, write all the content that is in it and just set the padding, or just set the height block? How right?
5cdc3f9c94549510562756.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
houd1ini, 2019-05-15
@denisopko

I advise you to combine the min-height property, while still giving minimal padding. If you want to add more content, then with min-height: 100vh and a lot of text, the content will stick.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question