Answers for "div element in center"

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
7

center text in div container

text-align: center
Posted by: Guest on June-01-2020

Browse Popular Code Answers by Language