-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss-positioning.css
72 lines (69 loc) · 999 Bytes
/
css-positioning.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
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
h2{
text-align: center;
}
code{
color:#666;
font: bolder;
}
div{
background: #eaeaed;
height: 62px;
padding-top: 38px;
text-align: center;
width: 100px;
}
.offset {
background: none;
border: 2px dashed #9799a7;
height: 100px;
padding: 0;
}
div,code,.offset{
border-radius: 6px;
}
.offset code {
background: #2db34a;
color: #fff;
display: block;
height: 72px;
width: 100px;
padding-top: 26px;
position: relative;
left: 20px;
top: 20px;
text-align: center;
}
/* Absolute Position */
section,
.offset2,
.offset2 code {
border-radius: 8px;
padding: 24px 30px;
/* padding-top:24px ;
padding-bottom: 24px;
padding-left: 30px;
padding-right: 30px; */
}
section{
background: cornflowerblue;
height: 145px;
position: relative;
}
.offset2,
.offset2 code{
height: 96px;
position: absolute;
width: 160px;
}
.offset2 {
border: 2px dashed #9799a7;
right: 0;
top: 0;
}
.offset2 code{
background: #2db34a;
color: #fff;
display: block;
right: 20px;
top: 20px;
}