code
نسخ
اقتباس
عرض
تنزيل
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</head>
<body>
<br>
<!-- Creates the Overall Grid -->
<div class="container">
<!-- First Row -->
<div class="row">
<!-- First (and only column) -->
<div class="col-md-12 bg-info">
<h1>I'm in Column 1 of 1. I stretch the entire width. And keep going.</h1>
</div>
</div>
<!-- Second Row -->
<div class="row">
<!-- First of two columns -->
<div class="col-md-6 bg-danger">
<h1>I'm in Column 1 of 2</h1>
</div>
<!-- Second of two columns -->
<div class="col-md-6 bg-warning">
<h1>I'm in Column 2 of 2</h1>
</div>
</div>
</div>
</body>
</html>