Header Ads

Vertial Alignment



In CSS, line-height property is used for vertical alignment of text in an element.
This property is also a component of the ‘font’ shorthand property. It can be applied on
block-level elements, table cells, table captain, and so on.

lists the values of line-height property.

Value                    Description
normal                          A normal line height. This is default.
number                         A number that will be multiplied with the current font size to set the line
height.
length                           A field line height in px, pt, cm, and so on.
%                                  A line height in percent of the current font size.
inherit                          Specifies that the value of the line-height property should be inherited
                                     from the parent element.


No comments:

Powered by Blogger.