Html - Best way to center a on a page vertically and horizontally? - Stack Overflow - Center webpage top bottom div css
- Views: 545 505
The usage of display: flex, according to css-tricks and MDN is as follows.centerFlex This will center element horizontally and vertically too. No negative margins .. gotlandia.infogotlandia.info If you want that height of DIV don't break up things then for example you should use padding-top%; in the #header and height% in #gotlandia.infoner CSS. When the widths are responsive, use this: HTML Set the #header block to display: table-cell and set vertical-align: bottom to align the child's bottom edge to.