Added first bootstrap code
This commit is contained in:
parent
0fb716ce91
commit
1b7fa716c5
@ -8,14 +8,25 @@
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet"
|
||||
integrity="sha384-SgOJa3DmI69IUzQ2PVdRZhwQ+dy64/BUtbMJw1MZ8t5HZApcHrRKUc4W0kG879m7" crossorigin="anonymous">
|
||||
<style>
|
||||
/* TODO 4: Use flexbox to center the card in the vertical and horizontal center. */
|
||||
.flex-container {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="flex-container">
|
||||
<!-- TODO 2: Add the Bootstrap Prebuilt Card here -->
|
||||
<!-- TODO 3: Change the image src to display the flower.jpg image. -->
|
||||
<div class="card" style="width: 18rem;">
|
||||
<img src="flower.jpg" class="card-img-top" alt="sunflower">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Card title</h5>
|
||||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
||||
<a href="#" class="btn btn-primary">Go somewhere</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user