Answers for "how to set element html contents vertically"

CSS
15

css align items vertical center

.parent {
  display: flex;
  justify-content: center;
  align-items: center;
}
Posted by: Guest on October-31-2020
0

vertical align into div

#parent {position: relative;}

#child {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 50%;
    height: 30%;
    margin: auto;
}
Posted by: Guest on July-03-2020

Code answers related to "how to set element html contents vertically"

Browse Popular Code Answers by Language