When positioned is fixed, all elements are shifted to the left, but should they stay in place?
-
https://codepen.io/artem-chepelevich/pen/JZMKrZ
How can I make the menu fixed and the elements stay in place?
When there is also a logo (I have it on my PC), it will generally fit into it a little.
Before scrolling:
After scrolling:
JavaScript Oliver McMahon, Nov 5, 2020 -
I'm also fine in the example, but try adding
left: 0
andright: 0
to a fixed positioned elementAnonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!