I am currently using Bootstrap and have set up a grid with a circle on the left side. I am now facing an issue where any text I try to add next to the circle overlaps with it. I need the text to not overlap with the circle and vice versa, while also being responsive. The text should have a proper margin and in case of large content on mobile devices, it should increase the height of the grid vertically to accommodate all the content.
Here is the problem I am facing:
This is what I am trying to achieve:
Below is my code:
.demo-content{
padding: 15px;
font-size: 18px;
min-height: 140px;
background: #abb1b8;
margin-bottom: 20px;
padding-top: 40px;
padding-bottom: 10px;
border-radius:5px;
}
#circle {
background: #FFC40C;
width: 100px;
height: 100px;
border-radius: 50%;
position:absolute;
left:5%;
top:13%;
}
.circle-posiiton {
position:relative;
}
<html lang="en">
<head>
<title>Example</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<div main="rowmain">
<div class="row">
<div class="col-md-12 circle-position">
<div class="demo-content"><h1>Hi, Stack overflow. It is good.</h1>
<div id="circle"></div>
</div>
</div>
</div>
</div>
</body>