How can I make sure that% content is minimized to the size of the page on any resolution or monitor without creating a scroll bar?
Being that the scroll bar should only exist when the content of <div>
content is filled up enough for that.
Current code:
html,
body,
.maximoHeight {
height: 100%;
}
#cabecalho {
height: 100px;
background-color: red;
}
#conteudo {
min-height: 100%;
background-color: yellow;
}
#rodape {
height: 100px;
background-color: green;
}
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../Content/bootstrap.css" rel="stylesheet" />
<link href="../Content/Site.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server" class="maximoHeight">
<div class="container maximoHeight">
<div id="cabecalho" class="row">
<div class="col-md-12">
</div>
</div>
<div id="conteudo" class="row">
<div class="col-md-12">
<asp:ContentPlaceHolder ID="cphConteudo" runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div id="rodape" class="row">
<div class="col-md-12">
</div>
</div>
</div>
</form>
</body>
</html>