CSS How can I make the screen size to follow the div, I don't want it to be full screen

All CSS related post
G

Gabby

New member
Freecoin
97
How can I make the screen size to follow the div, I don't want it to be full screen

Here is the code

* {
padding: 0px;
margin: 0px
}


Body {
height: 100%;
background-color: blue;
}

.grid {
background-color: white;
width: 400px;
position: absolute;
transform: translate(-50%, -50%);
top: 50%;
left: 50%;
border-radius: 10px;
}
 

Richest Freecoded User

Most Freecoin

freecoded
freecoded
5,282 Freecoin
P
Peterparker87
1,812 Freecoin
J
Johnhendrick
1,551 Freecoin
S
Smith16
738 Freecoin
M
mahlibeardman
674 Freecoin
A
Alfrenoe87
618 Freecoin
Davy200
Davy200
590 Freecoin
G
GwenJasmine
571 Freecoin
D
domnickfury
505 Freecoin
R
riyageorge0895
496 Freecoin
Top