I'm working on a project, my side menu has 300px and my content
is 100% relative to my menu.
I apply the following style:
header {
position: fixed;
top: 0;
left: 0;
width: 300px;
height: 100%;
}
.content {
position: absolute;
top: 0;
left: 300px; /* Para que fique ao lado do menu */
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
But when I apply this to the site, the content
class gets larger, and scroll appears to see the rest. I want content
to be 100%, but relative to the 300px menu.
Follow the link, so you can see: link