Answers for "vertical-align: top; css"

CSS
2

vertical align css

/*
For a flexed item you can you align - items to center content vertically
you can use justify content to center horizontally
*/

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}
Posted by: Guest on December-15-2020
0

vertical align css

<div style="display: table; height: 400px; overflow: hidden;">
  <div style="display: table-cell; vertical-align: middle;">
    <div>
      everything is vertically centered in modern IE8+ and others.
    </div>
  </div>
</div>
Posted by: Guest on June-05-2021

Browse Popular Code Answers by Language