<h1>block box</h1>
<div class="wrap">
<div class="block">block</div>
<div class="block">block</div>
<div class="block">block</div>
</div>
<h1>inline box</h1>
<div class="wrap">
<span class="inline">inline</span>
<span class="inline">inline</span>
<span class="inline">inline</span>
</div>
.wrap{
background-color: #eee;
color:#fff;
}
.block{
background-color:red;
}
.inline{
background-color:blue;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.