-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
39 lines (35 loc) · 1.21 KB
/
index.html
File metadata and controls
39 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap</title>
<!-- TODO 1: Add the Bootstrap link here. -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<style>
/* TODO 4: Use flexbox to center the card in the vertical and horizontal center. */
.flex-container{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgb(255, 255, 204);
}
.card-body{
text-align: center;
}
</style>
</head>
<body>
<div class="flex-container">
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="./flower.jpg" alt="Flower image">
<div class="card-body">
<h5 class="card-title">Sunflower for my Sun!</h5>
<p class="card-text">You are my Sun, the first thing i want see or read from. Thank you for being there!</p>
<a href="./anotherCard.html" class="btn btn-primary">Click me!</a>
</div>
</div>
</div>
</body>
</html>