forked from calistus-igwilo/html-css-javascript-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.css
More file actions
189 lines (157 loc) · 3.06 KB
/
Copy pathsite.css
File metadata and controls
189 lines (157 loc) · 3.06 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
* {
margin: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #999;
}
p {
margin: .5em 0;
}
header {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100%;
background-color: #a493c0;
padding: 10px;
z-index: 1000;
text-align: center; /* Center-align text inside header */
}
nav {
display: inline-block;
}
nav ul {
display: inline-flex; /* Use inline-flex to center the list items horizontally */
padding: 0;
margin: 0;
list-style: none;
}
nav ul li {
margin: 0 5px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
nav ul li a:hover {
text-decoration: underline;
}
main {
display: block;
background-image: url("images/background.png");
padding-top: 3em;
padding-bottom: 3em;
min-height: 85%;
}
footer {
padding: 15px;
background-color: #a493c0;
color: #fff;
text-align: center;
}
aside {
position: fixed;
bottom: 10px; /* Position it 10px from the bottom */
left: 10px; /* Position it 10px from the left */
text-align: center;
padding: 1em; /* Adjust padding as needed */
z-index: 1000; /* Ensure it's above other content */
}
aside img {
max-width: 100px; /* Reduce the maximum width of the logo */
height: auto;
display: block;
margin: 0 auto; /* Center the logo horizontally within the aside */
}
article {
width: 75%;
margin: 0 auto; /* Center the article */
}
.banner {
width: 450px; /* Set a smaller width */
height: 310px; /* Set the height equal to width */
border-radius: 40%; /* Make the image round */
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
display: block;
margin: 0 auto; /* Center the banner image */
}
h1 {
font-size: 2.5em;
color: #333;
text-align: center; /* Center-align the heading */
}
.sub-title {
background-color: transparent; /* Remove the white background */
font-size: 1.2em;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
text-align: center; /* Center-align the subtitle text */
}
footer nav ul {
display: flex;
justify-content: center;
}
footer nav ul li {
margin: 0 10px;
}
footer nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
footer nav ul li a:hover {
text-decoration: underline;
}
.columns {
display: flex;
}
@media only screen and (min-width: 768px) {
main {
display: flex;
}
aside {
margin-left: 2%;
}
.columns-desktop {
display: flex;
}
}
/* Pies */
.pie {
width: 200px;
padding: 10px;
margin: 10px;
background-color: #fff;
border: solid 1px #ccc;
}
.pie img {
width: 100%;
}
.pie .title {
font-weight: bold;
}
.pie .columns {
width: 100%;
}
.pie .price {
text-align: right;
}
.pie .columns div {
width: 50%;
}
.pie button {
background-color: #f6aeae;
padding: 10px;
border: solid 1px #f6aeae;
border-radius: 3px;
color: #fff;
}