-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (24 loc) · 1.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Exercise</title>
</head>
<body>
<h1>Assigment -Diving Deeper into Css</h1>
<ol>
<li> Build a nice box (div) with some content (e.g. "I'm a box!"), padding, a border (style it as you want) and some margin.</li>
<li> If you didn't do it already: Set different padding and margin for the four different sides of the box.</li>
<li> Add the same box below the first box and note if you can identify any strange behavior.</li>
<li> Give the first box a height of 100% of the window height.</li>
<li> Set the first box back to a more reasonable height of 300px and set its width to 50%.</li>
<li> Position the two boxes next to each other.</li>
<li> "Hide" box number 1 and see how that changes the page.</li>
<li> Add a hover effect to the the LAST div element. Use pseudo-classes for that. </li>
</ol>
<div class="box" id="first-box"> I´m box </div><div class="box"> I´m box </div>
</body>
</html>