I have html code:
<ul>
<li><span class="a">aaa</span><span class="b">bbb</span></li>
<li><span class="a">aaa</span><span class="b">bbb</span></li>
<li><span class="a">aaa</span><span class="b">bbb</span></li>
</ul>
and css:
ul {
list-style: none;
margin: 0;
padding: 0;
}
.a {
width: 100px;
height: 60px;
display: inline-block;
background-color: #900;
}
.b {
width: 100px;
height: 60px;
display: inline-block;
background-color: #009;
}
Works fine if in both spans (class="a"
and class="b"
) are some content writed.
If remove text from span class="b"
, now result is not desirable
Tell please why this happened ?