-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
44 lines (40 loc) · 811 Bytes
/
styles.css
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
html {
background: #b3b3b3;
padding: 15px;
border: 5px solid white;
margin: 15px;
height: 2000px;
}
body {
background: #fa923f;
padding: 20px;
border: 5px solid black;
margin: 0;
height: fit-content;
/* overflow:hidden; CSS will automatically add this to HTML instead of body
So will not work. Unless you specifically add to both HTML and body
*/
}
.parent {
background: white;
padding: 20px;
border: 5px solid black;
margin: 0;
overflow: hidden;
}
.parent div {
background: rgb(105, 105, 109);
color: white;
padding: 10px;
border: 5px solid black;
margin: 10px;
}
.parent .child-1 {
position: relative;
/* position context is element itself
moved down 50 from top and 50 from left.
Push from current position
*/
top: 50px;
left: 600px;
}