N
N
Nikita Roisman2020-04-24 19:43:54
Layout
Nikita Roisman, 2020-04-24 19:43:54

How to make the top cap longer?

I want the site header to be long. I make the header longer, but in the mobile template everything moves out, in short, it doesn’t work. How to do it?

Here's how:

5ea317423209b256187854.png

Link to website: https://u.to/CeQwGA

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-04-24
@Kropers

For normal resolution

.header-in {
    margin: -30px;
}

For mobile version
.header-in {
    max-width: unset;
    margin: 0 -30px;
}

A
Arseny, 2020-04-24
Matytsyn @ArsenyMatytsyn

In order for the header to be the entire width of the screen, and at the same time the content itself fits into the general container, it is made into two levels of tags. The top → is essentially just for the sake of the background, and inside the one that sets the width of the layout + margin:auto (for example) to align in the middle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question