I'm trying to create a responsive layout **, and I have problems with the end of div border. I purposely put a red border around the div, so if something goes wrong I'd immediately identify it. The goal is for me to have all the page content displayed on the device (whatever it is) without the scroll bar, but displaying 100 of the content of the page (no real scrolling required). The two end edges (right and bottom corner) are disappearing from the device screen. Follow the code used
html,
body {
margin: 0;
height: 100%;
}
.um {
background: #333;
color: white;
padding: 50px 20px;
height: 100%;
/* para falta de suporte */
height: -webkit-calc(100% - 100px);
/* para Chrome */
height: -moz-calc(100% - 100px);
/* para Firefox */
height: calc(100% - 100px);
/* para suporte nativo */
}
#containerGeral {
position: relative;
width: 100%;
height: 100%;
border-style: solid;
border-color: red;
background-color: yellow;
}
#caixaTeste {
width: 15%;
height: 15%;
background-color: blue;
position: absolute;
top: 0%;
}
#caixaTeste2 {
width: 15%;
height: 15%;
background-color: green;
position: absolute;
right: 0%;
top: 0%;
}
#containerTeste {
width: 40%;
height: 40%;
border-style: solid;
border-color: red;
background-color: green;
bottom: 30%;
position: absolute;
}
#containerFilho {
position: absolute;
right: 0%;
width: 65%;
height: 65%;
background-color: #ccc;
}
#containerFilho2 {
position: absolute;
right: 0%;
width: 65%;
height: 65%;
background-color: blue;
bottom: 0%;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body>
<div>
<h1 align="center">RELATIVO: CONTAINER GERAL</h1>
<div id="caixaTeste">ABSOLUTO</div>
<div id="caixaTeste2">ABSOLUTO</div>
<div id="containerTeste">NOVO CONTAINER
<div id="containerFilho">CONTEINER FILHO
<div id="containerFilho2">CONTAINER FILHO - FILHO</div>
</div>
</div>
</div>
</body>
</html>
** I do not believe there is anything 100% responsive.