I've run into an issue with my webpage layout. I have a fixed navigation bar and an image displayed, but now I want to add another image on top of the existing one. However, when I use "position: relative" and position:absolute", the two images end up overlapping my navigation bar when I scroll.
Is there anyone out there who can provide some guidance on this matter?
If necessary, I can share the relevant code snippets.
(menueBar.css)
#menu-bar {
font-family: Arial;
font-size: 20px;
}
#name {
color: #ccc;
margin-left: 15px;
margin-top: 15px;
}
#nav{ background-color: #222;
position: fixed;
width: 100%;
height: 133px;
top: 0;
left: 0;
}
... (omitted for brevity) ...
... more code snippets follow ...