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,246 Freecoin
P
Peterparker87
1,579 Freecoin
J
Johnhendrick
1,247 Freecoin
S
Smith16
736 Freecoin
Davy200
Davy200
590 Freecoin
R
riyageorge0895
496 Freecoin
nathan69
nathan69
426 Freecoin
Laureine
Laureine
415 Freecoin
A
anajeen
395 Freecoin
A
Alfrenoe87
392 Freecoin
Top