forked from alyab0uzaid/eHacks2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
41 lines (37 loc) · 994 Bytes
/
style.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
body, html {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #f0f0f5;
}
.iphone-container {
position: fixed; /* This allows absolute positioning within it */
display: inline-block; /* Shrink-wrap the div around the image */
height: 90%;
}
.iphone-container img {
max-width: 100%;
height: 100%;
z-index: 1; /* Ensure content is above the iPhone image */
}
.content-container {
position: absolute;
width: 80%; /* Adjust based on preference */
max-width: 237px; /* Maximum width */
height: 80%;
max-height: 555px; /* Maximum width */
padding: 20px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255, 255, 255, 0.8);
display: flex;
flex-direction: column;
align-items: center;
overflow: auto;
border-radius: 25px;
z-index: 0; /* Ensure content is above the iPhone image */
}