htmlcss

The vertical-align property is used in CSS and certain HTML elements. It specifies the vertical alignment of an inline or table-cell element.

Values for inline elements

Most of the values vertically align the element relative to its parent element.

For elements that do not have a baseline, the bottom margin edge is used instead. However, two values vertically align the element relative to the entire line rather than relative to its parent.

Negative values are allowed for all values.

Values for table-cell elements

Negative values are allowed for all values.


HTML example:

<img style="vertical-align:bottom;" src="Image1.png" />


CSS example:

img {
     vertical-align:bottom;
}