Skip to content

Commit 0936c8c

Browse files
committed
Positions, Float, Media Queries - position: relative
1 parent e8a846c commit 0936c8c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

styles.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
/* by default - position:static */
1+
/*
2+
position:static - default, always positioned according to the normal flow,
3+
position:relative - position relative to it's normal position.
4+
top,bottom,left, right
5+
*/
26

37
div {
48
border: 5px solid red;
@@ -9,6 +13,11 @@ div {
913
.first {
1014
background: blue;
1115
color: white;
16+
position: relative;
17+
/* top: 200px; */
18+
bottom: 2rem;
19+
/* left: 14%; */
20+
right: 20px;
1221
}
1322

1423
.second {

0 commit comments

Comments
 (0)