Home  >  Article  >  Web Front-end  >  [Import] CSS to achieve absolute centering of variable height DIV_www.KnowSky.com_html/css_WEB-ITnose

[Import] CSS to achieve absolute centering of variable height DIV_www.KnowSky.com_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:28:03948browse

Generally speaking, it is more convenient to center a DIV with a specified height vertically and horizontally, but it is a little more troublesome if the height is not determined. I tried it and achieved absolute centering through two auxiliary DIVs. Compatible with standard browsers such as IE and FF.

CSS code: <.....Click to view details
Article source: http://www.knowsky.com/442392.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn