Vertical-align application
Comparison with valign
Vertical-align explains in the light rain manual that it sets or retrieves the vertical method of the object content. What I don't quite understand is that vertical-align is classified as "attribute/text"
O3noBLOG emphasizes the difference between vertical-align and valign. It is true that vertical-align applies the most in td, and controls the internal object location, which is very similar to the valign attribute of td.
Valign has four parameters: top, baseline, bottom, and middle. vertical-align also has the same attribute value. The following is a comparison of td control:
Use vertical-align: top; to avoid td's default valign = "middle" is a good choice. Of course, you can also use vertical-align: middle; to control td, however, div is definitely invalid.
Effect demonstration: http://www.rexsong.com/blog/atta... 4_141246_valign.htm
Comparison with align
As prompted by w3, vertical-align is used on the inline object, such as img control, so it is similar to the align attribute of img.
When you use align = "absmiddle" to control the absolute center of the img, you can also use vertical-align: middle; to make a clear comparison:
Therefore, the true absolute center is still align = "absmiddle", which is irreplaceable with CSS.