Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

center postion absdolute

 position: absolute;
    top: 50%;  /* position the top  edge of the element at the middle of the parent */
    left: 50%; /* position the left edge of the element at the middle of the parent */

    transform: translate(-50%, -50%); 
 
PREVIOUS NEXT
Tagged: #center #postion #absdolute
ADD COMMENT
Topic
Name
5+4 =