When creating a fixed top nav bar, I added padding to the body tag so that the nav bar always stays on top like this:
body {
padding-top: 70px;
}
Now, I want to set a background image for the body that covers the entire screen, so I added the following CSS:
body {
background: url(background.jpg);
background-size: cover;
}
The issue I am facing is that the nav bar overlaps parts of the background image due to the 70px padding. How can I resolve this problem?