1
How is it possible to make the <div>
content has as minimum the size of the page in any resolution or monitor without creating scroll bar?
Where the scroll bar should only exist when the contents of the <div>
content is filled in enough to do so.
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>
width: 100% resolve ? ( for width ) and height: 100% for height
– SneepS NinjA
@Rafael Kendrik the 100vh made the div stay with the 100% but as I have head and footer each with 100px he creates the scroll bar and hides my footer.
– Mauricio Ferraz
@Sneeps Ninja, does not solve why I have header and footer with 100px each and it hides the footer.
– Mauricio Ferraz
Why is the question being denied, something wrong with it?
– Mauricio Ferraz
If you are using bootstrap, read about the definitions of "containers" in boostrap: http://getbootstrap.com/css/#Overview-container ,
container-fluid
andcontainer
– Ivan Ferrer
remembering that you can also customize the CSS, where you can specify sizes
max-width
andmin-height
for any element.– Ivan Ferrer