Answers for "how to center element html"

CSS
21

how to center text in css

.class {
	text-align: center;
}
Posted by: Guest on February-15-2020
4

how to center a div element

/*ADD MARGIN auto to left and right*/
.box1{
    width:80%;
    margin:0 auto;
}
Posted by: Guest on August-27-2020

Browse Popular Code Answers by Language