I want four 'square' divs to be displayed close together with 0 margin and 0 padding etc. So they resemble one big square
I have used the
*{
}
selector and my browser recognises it, and no margin and padding can be found through my dev tools. However there is still space. Any help greatly appreciated
HTML
<div id="container">
<div class="wrapper">
<div class="box">
</div>
</div>
<div class="wrapper">
<div class="box">
</div>
</div>
<div class="wrapper">
<div class="box">
</div>
</div>
<div class="wrapper">
<div class="box">
</div>
</div>
</div><!-- Container close -->
CSS
*{
margin: 0;
padding: 0;
}
body{
background: black;
}
#container{
width: 960;
margin: 0 auto;
}
.wrapper{
display: inline-block;
float: center;
}
.box{
width: 240px;
height: 240px;
background: white;
}