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
93
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
2,178 Freecoin
Davy200
Davy200
590 Freecoin
nathan69
nathan69
424 Freecoin
Laureine
Laureine
415 Freecoin
C
codeguru
295 Freecoin
Tekera
Tekera
263 Freecoin
A
Akubay
170 Freecoin
smitha
smitha
104 Freecoin
G
Gabby
93 Freecoin
S
sesli
78 Freecoin
Top