forked from itscodenation/int-u2l2-23-24-student-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code-solo.html
102 lines (79 loc) · 1.98 KB
/
code-solo.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
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<title>Code Solo</title>
</head>
<body>
<div class="navbar">
<a href="index.html">Do Now</a>
<a href="code-along.html">Code Along</a>
<a href="code-solo.html">Code Solo</a>
</div>
<h1>My Dream Travel Destinations</h1>
<section>
<!-- 1. Create an unordered list (<ul>) to list the dream travel destinations -->
<!-- 2. Add 3 list items (<li>), one for each dream travel destination. -->
<!-- 3. Add an anchor tag (<a>) for the link to more information.
NOTE: the anchor tag will be nested in the list item. -->
<!-- 4. Add an image (<img>) for the destination.
NOTE: the image tag will be nested in the list item. -->
</section>
</body>
</html>
<!-- The code below styles the page. DO NOT EDIT. -->
<style>
.navbar {
overflow: hidden;
background-color: #333;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background: #ddd;
color: black;
}
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
text-align: center;
}
ul {
list-style-type: none;
padding: 0;
margin: 20px 0;
display: flex;
justify-content: space-around;
}
li {
text-align: center;
width: 200px;
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
transition: transform 0.3s ease-in-out;
}
li:hover {
transform: scale(1.05);
}
img {
max-width: 100%;
height: auto;
display: block;
margin: 10px auto;
border-radius: 5px;
}
a {
color: #0066cc;
text-decoration: none;
font-weight: bold;
}
</style>