float-left クラスと float-right クラスがまさにそれを行う次の HTML があります。
<div class="block-footer">
<button class="medium float-left">A</button>
<button class="medium float-left">A</button>
<button class="medium float-left">A</button>
<button class="medium float-right">A</button>
<button class="medium float-right">A</button>
</div>
これは機能しますが、私の div は垂直方向のスペースを占有していないようです。これは次の問題です。私がこれを行うとき:
<div class="block-footer">
<button class="medium float-left">A</button>
<button class="medium float-left">A</button>
<button class="medium float-left">A</button>
<button class="medium float-right">A</button>
<button class="medium">A</button>
</div>
次に、DIV がスペースを占有します。
では、いくつかのボタンを左と右にフロートさせて、DIV に垂直方向のスペースを使用させるにはどうすればよいでしょうか?