-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry.css
More file actions
42 lines (39 loc) · 957 Bytes
/
try.css
File metadata and controls
42 lines (39 loc) · 957 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
41
42
/* Basic reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
/* Ensure html and body cover the full height */
width: 100%;
overflow: hidden;
/* Prevent scrollbars on the body */
background-color: #111111;
/* Set background on body */
}
canvas {
display: block;
/* Remove extra space below inline elements like canvas */
width: 100%;
/* Let canvas fill its container (body) */
height: 100%;
/* border: 1px solid red; /* Optional: for debugging */
}
/* Styles for the card (if you uncomment it in HTML) */
.card {
position: absolute;
/* Position relative to the nearest positioned ancestor (or body) */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* Center the card */
width: 20rem;
height: 30rem;
background: #31beff;
z-index: 10;
/* Ensure it's above the canvas */
/* Add other card styles */
}