Skip to content

Commit 2a76f98

Browse files
committed
Class & Objects
1 parent 14ca31c commit 2a76f98

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

index.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ body {
6969
justify-content: space-around;
7070
}
7171

72-
73-
7472
.box {
7573
border: 2px solid black;
7674
border-radius: 3px;
@@ -81,4 +79,20 @@ body {
8179
display: flex;
8280
justify-content: center;
8381
align-items: center;
82+
}
83+
84+
#obj {
85+
margin: 1%;
86+
height: 10rem;
87+
display: flex;
88+
justify-content: center;
89+
align-items: center;
90+
background-color: blueviolet;
91+
}
92+
93+
.obj_box {
94+
height: 90%;
95+
width: 90%;
96+
background-color: azure;
97+
border-radius: 3px;
8498
}

index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ <h2>Box - 2</h2>
2929
<div id="btw">
3030
<button type="button" id="e_btw">Click Me</button>
3131
</div>
32+
<div id="obj">
33+
<div class="obj_box">
34+
<h1>Hello...</h1>
35+
</div>
36+
</div>
3237
</body>
3338

3439
<script src="First.js"></script>

0 commit comments

Comments
 (0)