Answers for "center a div in the body"

1

how to get div in the middle of body

{
	/* inside parent div */
    display:grid;
    place-content:center;
}
Posted by: Guest on June-11-2021
0

elements in body don't want to center

body
    {
        width:80%;
        margin-left:auto;
        margin-right:auto;
    }
Posted by: Guest on January-13-2021

Browse Popular Code Answers by Language