-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
145 lines (120 loc) · 2.27 KB
/
Copy pathstyles.css
File metadata and controls
145 lines (120 loc) · 2.27 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
body {
font-family: "Helvetica Neue", sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
}
header {
background-color: #333;
color: #fff;
padding: 10px;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav li {
display: inline-block;
margin-right: 20px;
}
nav a {
color: #fff;
text-decoration: none;
}
main {
padding: 20px;
background-color: lightblue;
}
.about-me,
.projects {
margin-bottom: 30px;
}
.about-me h1,
.projects h1 {
margin-bottom: 10px;
color: darkslateblue;
}
.about-me ul {
list-style: none;
padding-left: 20px;
width: 150px;
}
.about-me ul li:before {
content: "» ";
}
.projects .project {
margin-bottom: 20px;
}
.projects h2 {
margin-bottom: 5px;
}
/* CSS3 Selectors and Pseudo-Classes */
.about-Us h1:first-of-type {
color: #2a75a2;
}
.about-Us h2:nth-child(2n) {
color: #c9494a;
}
.about-Us ul li:nth-child(odd) {
background-color: #f0f0f0;
}
/* CSS3 Pseudo-Elements */
.about-Us h2::after {
content: " (Best Services) ";
color: #777;
font-size: 0.8em;
}
/* Table Styles */
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
}
th {
background-color: #f2f2f2;
font-weight: bold;
}
/* Responsive Styles */
@media (max-width: 768px) {
nav li {
display: block;
margin-bottom: 10px;
}
}
/* Gradient-colored buttons */
.gradient-btn {
display: inline-block;
padding: 10px 20px;
margin: 10px;
background: linear-gradient(to right, #ff5f6d, #ffc371);
color: #fff;
text-decoration: none;
border-radius: 5px;
transition: background 0.3s ease;
}
.gradient-btn:hover {
background: linear-gradient(to left, #ff5f6d, #ffc371);
}
/* Images with text on side */
.image-with-text {
display: flex;
align-items: center;
margin-top: 30px;
}
.image-container img {
max-width: 100%;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.text-container {
flex: 1;
margin-left: 30px;
}
.text-container h2 {
color: #2a75a2;
margin-bottom: 10px;
}