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,136 Freecoin
P
Peterparker87
853 Freecoin
J
Johnhendrick
767 Freecoin
S
Smith16
728 Freecoin
Davy200
Davy200
590 Freecoin
R
riyageorge0895
496 Freecoin
nathan69
nathan69
426 Freecoin
Laureine
Laureine
415 Freecoin
A
anajeen
395 Freecoin
J
jamieelucas
384 Freecoin
Top