My content overflows into menubar.
I used this as an example but my web is not working properly.
How can I fix this?
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.
1 Like
It works. Thank you