Greetings to all.

There is a block that should be at the top of the page, its width should be 100%.

However, for some reason unknown to me, it slides 15-20 pixels down and 15-15 pixels to the left.

alt text

#navbar { background-color: #1e64cc; height: 5%; width: 100%; position: fixed; } 

Thanks in advance for your reply.

  • one
    If it is fixed, add top: 0; left: 0; - dekameron 5:02
  • @dekameron, thank you! - evansive

1 answer 1

Make it a rule to override standard styles. The first lines of your .css file should be

  * { margin: 0; padding: 0; } 
  • @ dimka3210, thank you very much, I will consider! - evansive