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