In my layout, I have four inner div
containers arranged as follows: small picture - text - small picture - text.
<div class="container">
<div class="col-md-12">
<div class="row">
<div class="col-sm-2">
<div class="components-circle inner-component"></div>
</div>
<div class="col-sm-4">
<h3>Title</h3>
<p class="description">
Some ... long ... text
</p>
</div>
<div class="col-sm-2">
<div class="components-circle inner-component"></div>
</div>
<div class="col-sm-4">
<h3>Title</h3>
<p class="description">
Some ... long ... text
</p>
</div>
</div>
</div>
</div>
The CSS
styles for components-circle
and inner-component
are:
.components-circle {
display: block;
margin: 0 auto;
background-repeat: no-repeat;
height: 115px;
width: 115px;
border-radius: 100%;
border: 2px solid #e0e0eb;
}
.inner-component {
background: url(http://...) no-repeat;
background-position: 20px 15px;
}
However, the issue arises when resizing the browser as components-circle
and inner-component
start overlapping the adjacent text on the right side. This lack of responsiveness in the template is problematic.
Is there a way to introduce line breaks when resizing the browser or make components-circle
and inner-component
responsive to prevent overlap with the corresponding text?