Visual formatting properties

Property

Value

Description

Support level

Availability

bottom

Percentage | Length | auto

Specifies the distance of the bottom edge of an element above or below the parent element.

CSS 2.1

4.6 or later

clear

left | right | both | none

Specifies which sides of an element's box may not be adjacent to an earlier floating box

CSS 2.1

6.0 or later

direction

ltr | rtl

Specifies the direction of the text.

CSS 2.1

4.6 or later

height

Percentage | Length | auto

Specifies the height of an element.

CSS 2.1

3.8 or later

left

Percentage | Length | auto

Specifies the distance of the left edge of an element from the right or left edge of the parent element.

CSS 2.1

4.6 or later

line-height

normal | Number | Percentage | Length

Specifies the height of each line in an element.

CSS 2.1

4.6 or later

max-height

none | Percentage | Length

Specifies the maximum height for an element.

CSS 2.1

4.6 or later

max-width

none | Percentage | Length

Specifies the maximum width for an element.

CSS 2.1

4.6 or later

min-height

Percentage | Length

Specifies the minimum height for an element.

CSS 2.1

4.6 or later

min-width

Percentage | Length

Specifies the minimum width for an element.

CSS 2.1

4.6 or later

position

absolute | fixed | relative | static

Specifies the position of the element.

CSS 2.1

4.6 or later

right

Percentage | Length | auto

Specifies the distance of the right edge of the of an element from the right or left edge of the parent element.

CSS 2.1

4.6 or later

top

Percentage | Length | auto

Specifies the distance of the top edge of an element above or below the parent element.

CSS 2.1

4.6 or later

vertical-align

Percentage | Length | baseline | sub | super | top | text-top | middle | bottom | text-bottom

Specifies the vertical alignment of an element.

CSS 2.1

4.6 or later

width

Percentage | Length | auto

Specifies the width of an element.

CSS 2.1

3.8 or later

z-index

Number | auto

Specifies the stack order of an element.

CSS 2.1

4.6 or later

Backgrounds & foregrounds | Box model | Fonts | Lists | Tables | Text | Visual effects | Visual formatting

Last modified: 2014-03-10



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus