-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyles.css
116 lines (101 loc) · 2.64 KB
/
styles.css
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
/* Reset and general styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f4f4f4;
}
/* Header styling */
header {
background-color: #333;
color: #fff;
padding: 15px;
text-align: center;
}
/* Example styling for a logo image in the header */
.logo {
width: 100px; /* Adjust width as needed */
height: auto; /* Maintains aspect ratio */
display: block; /* Prevents inline display issues */
margin: 0 auto; /* Centers the image horizontally */
}
.logo-left {
float: left;
width: 100px; /* Adjust width as needed */
height: auto; /* Maintains aspect ratio */
margin-right: 15px; /* Adds space between the image and text */
}
.logo-right {
float: right;
width: 100px; /* Adjust width as needed */
height: auto; /* Maintains aspect ratio */
margin-left: 15px; /* Adds space between the image and text */
}
.custom-video {
width: 100%; /* Makes video (and poster) responsive */
max-width: 600px; /* Sets a maximum width */
height: auto; /* Maintains aspect ratio */
border-radius: 8px; /* Optional: rounds corners of video and poster */
}
.grid-container {
display: grid; /* Enable CSS Grid */
grid-template-columns: 1fr 1fr; /* Two equal columns */
gap: 20px; /* Add spacing between columns */
align-items: center; /* Align items vertically */
}
.left-text {
text-align: left; /* Align text to the left */
}
.right-text {
text-align: right; /* Align text to the right */
}
img {
max-width: 100%; /* Ensure image doesn't overflow */
height: auto; /* Maintain aspect ratio */
}
.center-image {
display: block; /* Makes the image a block-level element */
margin: 0 auto; /* Automatically adjusts left/right margins */
max-width: 100%; /* Optional: ensures responsiveness */
}
/* Navigation styling */
nav {
background-color: #444;
padding: 10px;
text-align: center;
}
nav a {
color: white;
margin: 0 15px;
text-decoration: none;
font-weight: bold;
}
nav a:hover {
color: #ddd;
}
/* Main content styling */
main {
flex: 1;
padding: 20px;
background-color: #efbf04;
}
main h2 {
margin-bottom: 10px;
}
main p {
line-height: 1.6;
}
/* Footer styling */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 10px;
font-size: 0.9em;
}