My content overflows into menubar

My content overflows into menubar
0.0 0

#1

My content overflows into menubar.
I used this as an example but my web is not working properly.
How can I fix this?


#2

Adding a z-index to your navbar could do it. Add the line “z-index: 2000;” to your css for .topnav

.topnav {
  background-color: #8A2871;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 2000;
}

It will make sure the navbar is always on top.


#3

It works. Thank you :slight_smile: