我想离开两个单元格,使它们之间有一些白色区域,而它们之间是水平对齐的,任何想法如何实现?简单的CSS:我如何拆分两个单元格
<div class="bubble">
<div id="lover1" class="lover">cell1.</div>
<div id="lover2" class="lover">cell2.</div>
</div>
我曾尝试:
<style>
.bubble {
position: absolute;
left: 93px;
top: 21px;
width: 335px;
height: 284px;
display: table;
background-color: #ffcc99;
}
.lover {
display: table-cell;
vertical-align: middle;
text-align: center;
}
#lover2{
margin-left: 100px;
}
</style>