forked from Make-School-Labs/CSS-Challenges
-
Notifications
You must be signed in to change notification settings - Fork 3
/
challenge-5.html
75 lines (56 loc) · 1.75 KB
/
challenge-5.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Challenge 5</title>
<style>
/* Style the weather report */
/* Apply the following styles to the body */
/* font family 'Helvetica Neue' */
/* font size 20px */
/* line height 1.5 */
/* Color #333 dark gray */
/* background color #eee light gray */
/* Style the dt (definition title) */
/* Make the font really big! 2em */
/* Make the background color light gray #ccc */
/* Style the dd (definition) */
/* make the font big 1.5em */
/* Background color #ddd */
/* Remove the by setting margin: 0 */
/* Style both the dt and dd */
/* Using the comma groups selectors */
dt, dd {
/* Add some space between these elements and their content */
/* padding: 0.5em */
}
/* Stretch Challenges:
- Adjust these styles to your taste. What do you think would
look best here?
- Edit the HTML, add a new list item with a new weather report.
- 06 March 2018
- Partially cloudy
- 07 March 2018
- Sunny and clear
- Change the background color for each row. You want the rows to be
light blue with the two rows using a different shade of blue.
- Use text-align to move the heading text to the right.
*/
</style>
</head>
<body>
<article>
<header>
<h1>Weather forecast for Seattle</h1>
<p>Three day forecast</p>
</header>
<dl>
<dt><time datetime="2018-03-03">03 March 2018</time></dt>
<dd>Rain.</dd>
<dt><time datetime="2018-03-04">04 March 2018</time></dt>
<dd>Periods of rain.</dd>
<dt><time datetime="2018-03-05">05 March 2018</time></dt>
<dd>Heavy rain.</dd>
</dl>
</article>
</body>
</html>