I'm trying to have three of divs side by side with spacing in between the div's in the middle.
Here is the image of what I need:
Here is my current code:
<style>
.box {
float: left;
width: 33%;
background-color: red;
text-align: center;
color: #fff;
}
</style>
<div class="box">Div 1</div>
<div class="box">Div 2</div>
<div class="box">Div 3</div>
The problem with my current code is that it does not have the spacing I need in the middle of div 1 and 2, and div 2 and 3.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…