Answers for "how to make the style on center in css"

CSS
10

css center

/* this will center all children within the parent element. */
.parent {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center; /* vertical */
}
Posted by: Guest on May-17-2020
0

center css

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

Code answers related to "how to make the style on center in css"

Browse Popular Code Answers by Language