I am trying to achieve this simple structure without using floats: http://cl.ly/image/120w2S12213O
I am new to Web Design so I am a bit lost. Why green and red elements are separated by a white gap? It's not padding, nor margin... I can't understand it. Thank you.
This is the HTML:
<body>
<header></header>
<section></section>
<aside></aside>
<footer></footer>
</body>
And this is the CSS.
body {
width: 1024px;
height: 612px;
margin: 0 auto; }
header {
position: relative;
top: 0;
width: 100%;
height: 100px;
box-sizing: border-box;
background-color: blue; }
section {
position: relative;
margin: 0;
padding: 0;
width: 70%;
height: 600px;
box-sizing: border-box;
background-color: red;
display: inline-block; }
aside {
position: relative;
margin: 0;
padding: 0;
left: 0;
width: 28%;
height: 600px;
box-sizing: border-box;
background-color: green;
display: inline-block; }