Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css center element on screen

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
 
PREVIOUS NEXT
Tagged: #css #center #element #screen
ADD COMMENT
Topic
Name
1+8 =