Answer the question
In order to leave comments, you need to log in
How to make this block (header)?
I don’t understand how to arrange 2 images divided in half and so that the navigation does not fall when resizing and the background itself, this whole thing should be adaptive, sorry for the poorly formulated question, I’m in a panic)
Answer the question
In order to leave comments, you need to log in
First option :
Place all graphics on the background of the main div and center via background-position, leave the rest of the blocks transparent and position relative to the center. The main block contains a wrapper block with the position: relative style.
{ position: relative;
width: 500px; /* */
}
{ position: absolute;
left: 50%; /*Находим центр*/
margin-left: 100px; /*Слегка смещаем, (он же не с центра начинается)*/
}
{ position: absolute;
width: 50; /* правая часть явно по центру */
top: 50%; /* верхняя часть тоже от центра */
}
{ transform: skewX(45deg);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question