Without using table, how can I align two elements (one at left, another at right) in the same line?
HTML content:
<div class='container'>
<div class="align-left">left</div>
<div class="align-right">right</div>
</div>
Style as shown:
.container{ width:100%; }
.align-left{ float: left;width:50%; }
.align-right{ float: right;width:50%; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With