I am currently working on implementing a Bootstrap grid design that resembles pic1.jpg. However, I am facing challenges in achieving the desired layout, as pic2.jpg shows the current scenario. Below, I have shared the code I am using.
pic1.jpg :- !
pic2.jpg :- !
In this design, Category3 should be a combination of category2, category4, and category5. Additionally, I am attempting to position a circle to the left of Category1, but it is appearing after Category1 instead. The circle should also be responsive.
Here is the code I am currently using:
<!-- Bootstrap Help -->
<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">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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>
<style type="text/css">
p {
padding: 50px;
font-size: 32px;
font-weight: bold;
text-align: center;
background: #f2f2f2;
}
#circle {
background: #f00;
width: 50px;
height: 50px;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<p>Category 1</p>
<div id="circle"></div>
</div>
<div class="col-md-8">
<p>Category 2</p>
</div>
<div class="col-md-4">
<p>Category 3</p>
</div>
<div class="col-md-8">
<p>Category 4</p>
</div>
<div class="col-md-8">
<p>Category 5</p>
</div>
</div>
</div>
</body>
</html>