Answers for "center in in css"

CSS
2

center in css

.centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* it center the item vertically */
    justify-content: center;
    /* it center the item horizontally */
}
Posted by: Guest on May-29-2021
-1

center in css

.center {
    margin: auto;
}
Posted by: Guest on May-29-2021

Browse Popular Code Answers by Language