This example shows three rows with different column sizes. Each colored box shows how much space it takes in the row using col-* classes.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap Column Sizing Example</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.box {
background-color: #007bff;
color: white;
padding: 1rem;
text-align: center;
border-radius: 0.25rem;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<main class="container mt-4">
<h1>Bootstrap Column Sizing (col-1 through col-12)</h1>
<section class="row">
<div class="col-3 box">col-3</div>
<div class="col-6 box">col-6</div>
<div class="col-3 box">col-3</div>
</section>
<section class="row">
<div class="col-4 box">col-4</div>
<div class="col-8 box">col-8</div>
</section>
<section class="row">
<div class="col-12 box">col-12 (full width)</div>
</section>
</main>
</body>
</html>