Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

Centering Div Vertically and Horizentally

.center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 5px solid #FFFF00;
padding: 10px;
}
Source by blog.hubspot.com #
 
PREVIOUS NEXT
Tagged: #Centering #Div #Vertically #Horizentally
ADD COMMENT
Topic
Name
9+9 =