Answers for "how to use css to position text in middle of container"

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 "how to use css to position text in middle of container"

Browse Popular Code Answers by Language