Some common problems with HTML layouts:
1. When the picture and text house are on the same line, the position text of the adjustment picture will move along with it. To make the picture, the text is centered vertically need to have the picture and the text containing the label at the same time set diplay:inline-block; the picture is centered with Vertical-align:middle, the text is centered with line-height or vertical-align: Middle.
2. Universal Clear Float
. clearfloat{
Clear:both;
height:0;
line-height:0;
}
The CSS can be used to clear the float of floating element A above clearfloat, so that it has a single line. The following element B will no longer be displayed on the same line as a, even if the width is sufficient.
This article from "Day-dream's Blog" blog, reproduced please contact the author!
Common layout problems with HTML