Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css center div vertically

.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #center #div #vertically
ADD COMMENT
Topic
Name
3+2 =