-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.html
96 lines (86 loc) · 2.06 KB
/
Index.html
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flexbox</title>
<link rel="stylesheet" href="flexbox.css">
</head>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
font-size: 15px;
}
main{
width: 60%;
margin: auto;
}
#colors{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#yellow{
background-color: hsl(31, 77%, 52%);
padding: 30px;
height: 300px;
color:white;
}
.h2{
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
padding: 20px;
color: hsl(0, 0%, 95%);
}
#blue{
background-color: hsl(184, 100%, 22%);
padding: 30px;
height : 300px;
color: white;
}
#green{
background-color: hsl(179, 100%, 13%);
color: white;
height: 300px;
padding:30px;
}
button{
background-color: hsl(0, 0%, 95%);
color: hsl(179, 100%, 13%);
position: relative;
bottom: 0;
border: none;
text-align: center;
display: inline-block;
margin: 10px;
padding: 8px;
border-radius: 15px;
}
</style>
<body>
<main>
<div id = "colors">
<div id = "yellow">
<h2 class="h2">SEDANS</h2>
<p>Choose a sedan for its affordability and excellent fuel economy. Ideal for crusing in the city or on your next road trip</p>
<button>Learn More</button>
</div>
<div id = "blue">
<h2 class="h2">SUVS</h2>
<p>Take an SUV fot its spacious interior, power, and versatility. Perfect for your next family vacation and off-road adventures.</p>
<button>Learn More</button>
</div>
<div id = "green">
<h2 class="h2">LUXURY</h2>
<p>Cruise in the best car brands without the bloated prices. Enjoy the enhanced comfort of a luxury rental and arrive in style.</p>
<button>Learn More</button>
</div>
</div>
</main>
</body>
</html>