You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.7 KiB
HTML
110 lines
3.7 KiB
HTML
1 year ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||
|
|
||
|
<title>Bootstrap - Layout and Best Practices</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- the witdth will only apply in the elements and with out the width it will take all the space in the browser. -->
|
||
|
<!-- <div class="m-5 d-grid gap-3 mx-auto bg-secodary" style="width: 500px;">
|
||
|
<div class="p-2 bg-light border me-5">Item 1</div>
|
||
|
<div class="p-2 bg-light border ms-5">Item 2</div>
|
||
|
<div class="p-2 bg-light border mx-5">Item 3</div>
|
||
|
</div> -->
|
||
|
<main class="container">
|
||
|
<header class="row mt-5">
|
||
|
<div class="col-lg-12">
|
||
|
<h1 class="text-center">Welcome to My Website</h1>
|
||
|
</div>
|
||
|
</header>
|
||
|
|
||
|
<!-- the gap give automatic give padding and margin to the elements -->
|
||
|
<nav class="d-flex justify-content-center d-grid gap-5 bg-warning p-2">
|
||
|
<div>Home</div>
|
||
|
<div>About</div>
|
||
|
<div>Contact</div>
|
||
|
</nav>
|
||
|
|
||
|
<section class="row mt-5">
|
||
|
|
||
|
<!-- figure and figcaption is like the div -->
|
||
|
|
||
|
<figure class="col-lg-6">
|
||
|
<div>
|
||
|
<img class="img-fluid"src="https://place-puppy.com/550x350">
|
||
|
</div>
|
||
|
</figure>
|
||
|
<figcaption class="col-lg-6">
|
||
|
<h2>About Us</h2>
|
||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc interdum risus sed arcu commodo, at cursus magna porttitor. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||
|
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||
|
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||
|
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||
|
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||
|
</figcaption>
|
||
|
</section>
|
||
|
|
||
|
<section class="row mt-5 text-center">
|
||
|
<div class="col-lg-4 col-md-6">
|
||
|
<div class="p-5 border">
|
||
|
<h3>Feature 1</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- if you span the browser into larger screen it will trigger the col-lg-4 which will take effect-->
|
||
|
<div class="col-lg-4 col-md-6">
|
||
|
<div class="p-5 border">
|
||
|
<h3>Feature 2</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-lg-4 col-md-12">
|
||
|
<div class="p-5 border">
|
||
|
<h3>Feature 3</h3>
|
||
|
</div>
|
||
|
</div>
|
||
|
</section>
|
||
|
|
||
|
<footer class="d-flex justify-content-center d-grid gap-3 mt-5">
|
||
|
<div>Footer</div>
|
||
|
<div>|</div>
|
||
|
<div>Terms of Use</div>
|
||
|
<div>|</div>
|
||
|
<div>Copyright 2023</div>
|
||
|
</footer>
|
||
|
</main>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||
|
</body>
|
||
|
</html>
|