M
M
Maxim Ivanov2018-03-05 18:19:49
css
Maxim Ivanov, 2018-03-05 18:19:49

How can I make a block within a block indent so that the first block does not move?

https://jsfiddle.net/vsukfzvu/18/
When I write an indent for both elements, although I set only one block. Or not? margin-top: 15px;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Skibin, 2018-03-05
@halsey

Used "collapsing indents"
Options:
1. 2..middle-page { display: flex; }
.middle-page .main-middle-page { float: left; }

F
Froggyweb, 2018-03-05
@Froggyweb

Here https://developer.mozilla.org/ru/docs/Web/CSS/CSS_...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question