Skip to content

Commit 03ec5ac

Browse files
committed
Video 22 Completed
1 parent 36f980f commit 03ec5ac

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

Video 22/index.html

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
<style>
9+
* {
10+
margin: 0;
11+
padding: 0;
12+
}
13+
14+
html{
15+
font-size: 12px;
16+
}
17+
18+
.box {
19+
box-sizing: border-box;
20+
border: 2px solid black;
21+
/* width: 2048px; */
22+
width: 80vw;
23+
height: 10vh;
24+
margin: auto;
25+
background-color: aquamarine;
26+
}
27+
28+
.container {
29+
box-sizing: border-box;
30+
border: 2px solid black;
31+
/* width: 2048px; */
32+
width: 80vw;
33+
/* height: 80vh; */
34+
min-height: 80vh;
35+
margin: 23px auto;
36+
font-size: 18px;
37+
background-color: aquamarine;
38+
}
39+
.container > div{
40+
font-size: 2em;
41+
border: 2px solid red;
42+
width: 50%;
43+
}
44+
45+
.container > div > div{
46+
border: 2px solid blue;
47+
width: 50%;
48+
}
49+
50+
.mycont{
51+
border: 2px solid black;
52+
box-sizing: border-box;
53+
margin: 23px auto;
54+
color: rgb(0, 0, 0);
55+
font-size: 22px;
56+
/* width: 100vmin; */
57+
width: 80vw;
58+
}
59+
</style>
60+
</head>
61+
62+
<body>
63+
<!-- https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units -->
64+
<div class="box">
65+
This is a box
66+
</div>
67+
68+
<div class="container">
69+
<div>
70+
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Perferendis necessitatibus quia quod iste dolorem
71+
voluptatem fuga quidem aspernatur. Nihil ipsa sint quae, beatae explicabo saepe impedit laboriosam magni
72+
cupiditate expedita voluptates consequatur odit veritatis dolorum doloribus. Iure nemo odit dicta, delectus,
73+
modi reiciendis maiores ut quo adipisci libero quam laboriosam nihil voluptate natus nobis earum ad?
74+
75+
<div>
76+
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Libero omnis voluptas est aliquam, dolores rem laudantium nulla maiores odio fugit, totam voluptatem saepe!
77+
</div>
78+
</div>
79+
80+
<!-- Expand this to see that this container will adjust its height lorem999 -->
81+
</div>
82+
83+
<div class="mycont">
84+
I am another container
85+
</div>
86+
</body>
87+
88+
</html>

0 commit comments

Comments
 (0)