Answers for "aligning the contents inside a container in center"

CSS
21

how to center text in css

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

how to align a component in the middle of page

div {
	width: 100px;
	height: 100px;
	background-color: red;
	
	position: absolute;
	top:0;
	bottom: 0;
	left: 0;
	right: 0;
  	
	margin: auto;
}
Posted by: Guest on May-06-2020

Code answers related to "aligning the contents inside a container in center"

Browse Popular Code Answers by Language