Contrary to what is often thought, the CSS property vertical-align does not align vertically an inline item within a block element. For example, a picture will not be centered vertically within its div container using the value ‘middle’.
Instead the CSS property vertical-align is used to vertically align an element within a table cell or inline elements in relation to other inline elements.
Below, I will use the vertical-align property and its different values to position an image in relation to a text (both inline elements) contained in a div container.
{ 1 comment }





