forked from itscodenation/int-u2l3-23-24-student-exercises
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code-solo.html
43 lines (38 loc) · 1.62 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
<!DOCTYPE html>
<html>
<head>
<title>Code Solo</title>
<style>
/* Wally the Wombat want to update their profile - let's help them out. */
/* 1. Change the color of the <h1> tag. Remember, the property to change the color of text is color and the value is the name of the color you want (or use a hex code!) */
/* 2. Using body as our selector, change the background-color to whatever color you want. */
body {
font-family: Arial, sans-serif;
text-align: center;
}
.profile-container {
width: 80%;
margin: 20px auto;
padding: 20px;
border: 1px solid #ccc;
}
/* 3. Using wombat-image class selector, change the value of max-width to 400px. */
/* 4. Still using the wombat-image class selector, add a property called border-radius and set the value to 50%. What happens? */
.wombat-image {
max-width: 300px;
}
</style>
</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>
<div class="profile-container">
<h1>Wally the Wombat</h1>
<img src="https://images.squarespace-cdn.com/content/v1/58d455a81b10e32d5857f310/1653018543864-59U04M5CG67GIZNLZFCJ/Wombat-Habitats.jpg" alt="Wombat Picture" class="wombat-image">
<p>Wally is a friendly wombat from the forests of Australia. He enjoys digging tunnels, eating roots and leaves, and spending time with his family.</p>
</div>
</body>
</html>