Answers for "css move to center"

CSS
7

center div css

.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
Posted by: Guest on March-31-2021
0

center css

position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
Posted by: Guest on June-27-2021

Browse Popular Code Answers by Language