-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
52 lines (46 loc) · 1.39 KB
/
styles.css
File metadata and controls
52 lines (46 loc) · 1.39 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
/* ==============================
CSS Basics & Box Model
Stylesheet for assignment
============================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, sans-serif; background: #f4f4f4; color: #111; line-height: 1.5; }
.container { max-width: 800px; margin: 0 auto; padding: 1rem; }
h1, h2 { margin-bottom: 1rem; }
p, li { margin-bottom: 0.5rem; }
ul { margin-left: 1.5rem; }
.card {
background: #fff;
border: 1px solid #ccc;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 2rem;
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* Examples of CSS properties */
.example { display: inline-block; padding: 0.5rem; margin: 0.5rem 0; }
.color-example { color: darkred; }
.background-example { background: lightblue; }
.font-example { font-size: 1.25rem; font-style: italic; }
.border-example { border: 2px solid green; border-radius: 6px; }
.spacing-example { background: #eee; margin: 1rem; padding: 1rem; display: block; }
/* Box Model demo */
.box-demo {
background: lightcoral;
padding: 20px; /* padding visible */
border: 5px solid navy;/* border visible */
margin: 15px; /* margin around */
color: #fff;
border-radius: 6px;
}
.box-demo .content {
background: white;
color: black;
padding: 10px;
text-align: center;
}
.site-footer {
text-align: center;
font-size: 0.875rem;
padding: 1rem;
color: #555;
}