H
H
hellbladeuu2020-06-10 19:22:03
css
hellbladeuu, 2020-06-10 19:22:03

What is the reason for this "clump"?

I wanted to make position:fixed for the site header, but something went wrong. What is the reason can you explain? I’ve been in development for 5-6 months, I’ve already made up a couple of layouts, but this is the first time ((
UPD. https://codepen.io/KonstantinBakhronov/pen/KKVVRYa

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Martin Makara, 2020-06-10
@legantos

You either need to remove the header__wrapper and move position: fixed and everything else to header__inner , or set the length to the header__wrapper class.

S
Sergey Romanyuk, 2020-06-10
@SergeyRamanyuk

If you need to make a fixed header of the site, then it may be suitable:
position: sticky; top: 0; left:0; for the header, well, or navigation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question