-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
84 lines (73 loc) · 1.23 KB
/
styles.css
File metadata and controls
84 lines (73 loc) · 1.23 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
margin: 20px;
padding: 20px;
}
.demo-section {
margin-bottom: 60px;
}
.box-container {
border: 1px solid #ccc;
padding: 10px;
min-height: 200px;
}
.box {
border: 2px dashed #333;
padding: 14px;
background: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
min-width: 140px;
}
/* Relative Positioning */
.box.relative {
position: relative;
background: #e67e22;
color: white;
top: 30px;
left: 40px;
}
/* Absolute Positioning */
.absolute-parent {
position: relative;
min-height: 250px;
}
.box.absolute {
position: absolute;
background: #e74c3c;
color: white;
bottom: 20px;
right: 20px;
}
/* Fixed Positioning */
.box.fixed {
position: fixed;
background: #27ae60;
color: white;
top: 20px;
right: 20px;
}
/* Sticky Positioning */
.sticky-container {
border: 1px solid #ccc;
padding: 10px;
height: 300px;
overflow-y: auto;
}
.box.sticky {
position: sticky;
background: #9b59b6;
color: white;
top: 0;
width: 100%;
}
.scroll-content {
padding: 10px;
font-size: 20px;
}