I'm trying to scale the side menu and content div between the header and the footer so that it fills the entire screen even though I do not have a lot of content. if it has a lot of content, it would have the scroll bar.
Like this:
Howshoulditbe(Photoshop):
Code:
<!DOCTYPEhtml><html><head><metacharset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
html,body{
min-height: 100%;
}
header {
height: 100px;
background-color: blue;
}
.container {
background-color: aqua;
}
aside {
background-color: blueviolet;
height: 100%;
}
main {
background-color: gold;
height: 100%;
}
footer {
height: 150px;
background-color: red;
position: absolute;
bottom: 0;
width: 100%;
}
</style>
</head>
<body>
<header>
</header>
<div class="container">
<aside class="col-sm-3">
<h1>MENU</h1>
</aside>
<main class="col-sm-9">
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
<p>Conteudo</p>
</main>
</div>
<footer>
</footer>
</body>
</html>