Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

position absolute center horizontally

.parent{
  position: relative;
}
.child{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #position #absolute #center #horizontally
ADD COMMENT
Topic
Name
9+5 =