Answers for "html element in center of screen"

7

center text in div container

text-align: center
Posted by: Guest on June-01-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 "html element in center of screen"

Browse Popular Code Answers by Language