I have the following CSS code so that the header
and the nav
stay in the same place when you scroll to the page, but the content that follows is positioned at the top of the page remaining below the header
and the nav
hidden. I need to accommodate it and position itself after nav
.
header{
position: fixed;
margin-top: -10px;
background-color: gray;
margin-left: -8PX;
padding: 1px;
margin-top: -41PX;
padding-left: 15px;
color: white;
width: 100%;
}
nav{
background: #2D787B;
margin-left: -8px;
padding-left: 15px;
padding-top: 5px;
padding-bottom: 5px;
border-top-color: white;
border-top-width: 3px;
border-top-style: solid;
position: fixed;
margin-top: 35px;
width: 100%;
}