I'm struggling with my html code that contains elements arranged in rows:
<div class = "row">
<div class="col-sm-3 cont-box">
<h1>Title1<h1>
</div>
<div class="col-sm9 cont-box">
<img src="onepic.jpeg" class="img-responsive" alt="dum1">
</div>
</div>
Whenever I apply margins to the cont-box
class, the two elements are displayed below each other instead of next to each other. It seems like a line break is automatically added. How can I fix this issue?
As a beginner in CSS and html, any guidance or advice would be greatly appreciated.