It is necessary to orient the large block in the center using only css.
I tried Vertical-align and float + marigne auto - nothing works, padding-left and margin-left are not suitable.
It is necessary to orient the large block in the center using only css.
I tried Vertical-align and float + marigne auto - nothing works, padding-left and margin-left are not suitable.
width: 246px; height: 324px; left: 50%; magin-left: -123px; top: 50%; margin-top: -162px; position: absolute; vertical-align is designed to align inline elements. Alignment in height of rubber content only supports items with
display: table-cell; ... if cross-browser.
Source: https://ru.stackoverflow.com/questions/65720/
All Articles