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.

95 lines
3.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<title>Title</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Bootstrap - Layout and Best Practices</title>
<!-- Style -->
<style>
.sample-image {
background-image: url("https://place-puppy.com/450x450");
background-size: cover;
height: 400px;
width: 400px;
}
</style>
</head>
<body>
<div class="sample-image"></div>
<div class="d-grid gap-3 m-5 mx-auto" style="width: 500px;">
<div class="p-2 border bg-light ms-5">Item 1</div>
<div class="p-2 border bg-light me-5">Item 2</div>
<div class="p-2 border bg-light mx-5">Item 3</div>
</div>
<main class="container">
<header class="row mt-5">
<div class="col-12">
<h1 class="text-center">Welcome to My Website</h1>
</div>
</header>
<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 class="col-lg-6">
<div>
<img src="https://place-puppy.com/550x350" class="img-fluid">
</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>
<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 m-5">
<div>Footer</div>
<div>|</div>
<div>Terms of Use</div>
<div>|</div>
<div>Copyright 2023</div>
</footer>
</main>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
</script>
</body>
</html>