-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
40 lines (36 loc) · 731 Bytes
/
styles.css
File metadata and controls
40 lines (36 loc) · 731 Bytes
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
/* Reset default styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Full viewport height container */
body, html {
height: 100%;
font-family: Arial, sans-serif;
}
/* Container to center the image */
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
background-color: #f5f5f5; /* Optional background color */
}
/* Centered image styling */
.centered-image {
width: 100vw;
height: 100vh;
object-fit: contain;
display: block;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.centered-image {
max-width: 100vw;
max-height: 100vh;
}
}