N
N
Nohaga2020-04-20 15:57:06
css
Nohaga, 2020-04-20 15:57:06

Why does the container follow the indoor unit?

If wrapper is set to margin: -100px 0 0 0, then the content block will move with it. This is according to what layout laws?)

<div class="content">
<div class="wrapper">
</div>
</div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2020-04-20
@Nohaga

This is according to what layout laws?)

According to the laws of collapse of vertical margins.
Further, it is easy to google what it is, how it behaves and ways to get rid of it.

A
Andrey Fedorov, 2020-04-20
@aliencash

What did you decide? Please provide an example code.
Here is the code confirming that there is no such effect - https://codepen.io/aliencash/pen/ExVgWJz?editors=1100С

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question