Answers for "how to center an overlay button using css transform and translate"

CSS
0

how to center an overlay button using css transform and translate

position:absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
-webkit-transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
-moz-transform: translate(-50%,-50%);
Posted by: Guest on August-20-2021

Code answers related to "how to center an overlay button using css transform and translate"

Browse Popular Code Answers by Language