Spaces:
Paused
Paused
ranamhamoud
commited on
Update style.css
Browse files
style.css
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
h1 {
|
2 |
text-align: center;
|
3 |
display: block;
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
#duplicate-button {
|
@@ -11,8 +14,14 @@ h1 {
|
|
11 |
}
|
12 |
|
13 |
.contain {
|
|
|
|
|
|
|
|
|
14 |
max-width: 900px;
|
15 |
-
|
|
|
16 |
padding-top: 1.5rem;
|
17 |
-
|
|
|
18 |
}
|
|
|
1 |
h1 {
|
2 |
text-align: center;
|
3 |
display: block;
|
4 |
+
width: 100%; /* Ensures it takes full width of its container */
|
5 |
+
margin-top: 0; /* Optional: Removes default margin from top of h1 */
|
6 |
+
margin-bottom: 0.5em; /* Optional: Reduces space below h1 */
|
7 |
}
|
8 |
|
9 |
#duplicate-button {
|
|
|
14 |
}
|
15 |
|
16 |
.contain {
|
17 |
+
display: flex; /* Uses Flexbox */
|
18 |
+
flex-direction: column; /* Aligns children vertically */
|
19 |
+
justify-content: center; /* Centers children vertically */
|
20 |
+
align-items: center; /* Centers children horizontally */
|
21 |
max-width: 900px;
|
22 |
+
width: 100%; /* Takes full width */
|
23 |
+
margin: auto; /* Centers horizontally */
|
24 |
padding-top: 1.5rem;
|
25 |
+
padding-bottom: 1.5rem; /* Adds padding at the bottom */
|
26 |
+
min-height: 100vh; /* Minimum height to take full viewport height */
|
27 |
}
|