When positioned is fixed, all elements are shifted to the left, but should they stay in place?

  • 0
    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

  • 1 Answers
  • 0
    I'm also fine in the example, but try adding left: 0 and right: 0 to a fixed positioned element

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!