Answers for "how to center in"

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

Code answers related to "how to center in"

Browse Popular Code Answers by Language