-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaLessonTwo.html
More file actions
79 lines (77 loc) · 1.99 KB
/
Copy pathaLessonTwo.html
File metadata and controls
79 lines (77 loc) · 1.99 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Html Homework</title>
</head>
<style>
body{
background-color: royalblue;
}
.container {
width: 400px;
margin: 0 auto;
text-align: center;
}
.box {
width: 200px;
height: 200px;
background-color: #7c7878;
border: 1px solid #292626;
display: inline-block;
margin: 10px;
text-align: center;
line-height: 200px;
}
.box2 {
width: 200px;
height: 200px;
background-color: #3021b1;
border: 1px solid #292626;
display: inline-block;
margin: 10px;
text-align: center;
line-height: 200px;
}
.box3 {
width: 250px;
height: 500px;
background-color: #c649d1;
border: 1px solid #292626;
display: inline-block;
margin: 10px;
text-align: center;
line-height: 240px;
}
</style>
<script>
function previous() {
window.location.href = "aLessonOne.html";
}
function next() {
window.location.href = "bLessonThree.html";
}
</script>
<body>
<div class="container">
<h1>Html Homework 😀</h1>
<h3>________________________________________</h3>
<h1>2. Creating nested boxes</h1>
<h3>Create two divs and place it inside another div. Nested divs helps to organize the elements and group them.</h3>
</div>
<div class="container">
<div class="container">
<div class="box3">
<div class="box">Box 1</div>
<div class="box2">Box 2</div>
</div>
</div>
<div class="container">
<h4>Pages(2:7)</h4>
<button onclick="previous()">⬅ Previous page</button>
<button onclick="next()">Next page ➡</button>
</div>
</div>
</body>
</html>