I have following code
<div class="expense"><img class="money"/><span class="total"></span></div>
This produces the div and puts the image on one line and the content in span tag on other line. How can I put those on the same line?
css: display: inline-block
or display: inline
You could also do:
<div class="expense" style="display:table-row">
<img class="money" style="display:table-cell" />
<span class="total" style="display:table-cell"></span>
</div>
It's not the neatest, but it's another option
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