Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center align div vertically and horizontally css

.parent{
	display: flex;
    justify-content: center;
  	align-items: center;
}
/* Child elements will be perfectly centered automatically */
Source by programmersportal.com #
 
PREVIOUS NEXT
Tagged: #center #align #div #vertically #horizontally #css
ADD COMMENT
Topic
Name
1+4 =