-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
105 lines (87 loc) · 1.86 KB
/
styles.css
File metadata and controls
105 lines (87 loc) · 1.86 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
/* Reset CSS */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Global Styles */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f9f9f9;
color: #333;
}
header {
background-color: #333;
color: #fff;
padding: 1rem;
display: flex;
align-items: center;
}
.logo {
margin-right: 10px; /* Optional: Add some margin between the logo and the h1 title */
}
.logo img {
width: 50px; /* Adjust the width of the logo as needed */
height: auto;
}
header h1 {
margin: 0;
}
header img {
width: 100px; /* Adjust the width as needed */
height: auto; /* Maintain aspect ratio */
margin-right: 10px; /* Optional: Add some margin to separate logo from the header text */
}
nav ul {
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 1rem;
}
nav ul li a {
color: #fff;
text-decoration: none;
}
main {
padding: 1rem;
}
section {
margin-bottom: 2rem;
}
section h2 {
margin-bottom: 1rem;
text-align: center; /* Center align the heading */
}
.gallery {
display: flex;
flex-direction: column; /* Display children elements in a column */
align-items: center; /* Center align children horizontally */
}
.gallery-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
article {
background-color: #fff;
padding: 1rem;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
flex-basis: calc(25% - 1rem); /* Adjust according to your needs */
}
img {
max-width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 1rem;
}
footer {
background-color: #333;
color: #fff;
padding: 1rem;
text-align: center;
}