Properties

Properties are identifiers in CSS.

Values

name: value
Value Description
absolute Position is set with top, right, bottom, and left
absolute-size Index to a table of font sizes: xx-small | x-small | small | medium | large | x-large | xx-large
armenian Traditional Armenian numbering
attr Inserts the value of an element's attribute
auto Depends on the values of other properties
auto Indicates the cursor is determined by the current context
auto Determines the width of a column of cells based on the largest unbreakable element in a cell in the column
auto Stack level of the generated box in the current stacking context is the same as its parent's box and the box does not establish a new local stacking context
background-attachment Specifies whether the background image is fixed or scrolls with the viewport
background-color Sets the background color
background-image Sets the background image
background-position Specifies the initial position of the background image
background-repeat Specifies whether the background image is repeated
baseline Aligns the baseline of the box with the baseline of the parent box
bidi-override Creates an override for inline elements and inline descendants of block and inline-block elements
blink Alternates between visible and invisible text
block Generates a block box
bold 700 in the ordered sequence
bolder Bolder relative to the weight inherited from the parent
both Clears earlier left-floating and right-floating boxes
bottom Aligns the bottom of the aligned subtree with the bottom of the line box
bottom Positions the caption box below the table box
capitalize First character of each word in uppercase, other characters are unaffected
caption Font used for captioned controls (buttons, drop-downs, ...)
center Center text
circle Circle glyph
close-quote Replaces close quotation mark with a string from the quotes property
collapse Removed from display for rows, row groups, columns, or column groups and hidden from display for other elements
color Keyword or a numerical RGB (Red Green Blue) specification
counter Inserts a variable using counter(name), counter(name, style), counters(name, string), or counters(name, string, style)
crosshair Indicates a location point
cue-after Sound played after the element to delimit it
cue-before Sound played before the element to delimit it
decimal Decimal numbers, beginning with 1
decimal-leading-zero Decimal numbers padded by initial zeros (01, 02, 03, ... 98, 99)
default Default cursor
disc Disc glyph
e-resize Indicates the east edge is to be moved
embed Opens an additional level of embedding with respect to the bidirectional algorithm
family-name Name of a font family of choice
fixed Position is set with top, right, bottom, and left and does not move when scrolled
fixed Determines the width of a column of cells based on the width set on the table, its columns, and first row of cells
flex Causes an element to generate a block-level flex container box
generic-family Name of a generic font family as an alternative
georgian Traditional Georgian numbering (an, ban, gan, ... he, tan, in, in-an, ...)
help Indicates help is available
hide Borders and backgrounds are not drawn
hidden Hidden from display but affects layout
icon Font used to label icons
identifier One or more characters a-zA-Z, digits 0-9, hyphen -, or underscore _ and cannot start with a digit or a hyphen followed by a digit
inherit Takes the same computed value as the property for the element's parent
inline Generates one or more inline boxes
inline-block Generates a block box which is flowed as a single inline box
inline-flex Causes an element to generate an inline-level flex container box
inline-table Behaves like an inline table element
inside Marker box is outside the principal block box
integer One or more digits 0-9
integer Stack level of the generated box in the current stacking context and the box also establishes a local stacking context in which its stack level is 0
italic Cursive font which is slanted to the right
justify Justify text
left Left-align text
left Clears earlier left-floating boxes
left Floated to the left while content flows on the right starting at the top
length Horizontal or vertical measurements: em | ex | px | in | cm | mm | pt | pc
length Fixed distance from the reference edge
length Height measurement: em | ex | px | in | cm | mm | pt | pc
length Default spacing addition/subtraction
length Fixed maximum height
length Fixed maximum width
length Fixed minimum height
length Fixed minimum width
length Fixed length identation
length Raises or lowers the box by a fixed measurement from the baseline
length Width measurement: em | ex | px | in | cm | mm | pt | pc
lighter Lighter relative to the weight inherited from the parent
line-through Line through text
list-item Generate a principal block box and a list-item inline box
lower-alpha Lowercase ascii letters (a, b, c, ... z)
lower-greek Lowercase classical Greek (α, β, γ, ...)
lower-latin Lowercase ascii letters (a, b, c, ... z)
lower-roman Lowercase roman numerals (i, ii, iii, iv, v, ...)
lowercase All characters of each word in lowercase
ltr Left-to-right direction
menu Font used in menus (dropdown menus and menu lists)
message-box Font used in dialog boxes
middle Aligns the vertical midpoint of the box with the baseline of the parent box plus half the x-height of the parent
move Indicates something is to be moved
n-resize Indicates the north edge is to be moved
ne-resize Indicates the north east edge is to be moved
no-close-quote Removes close quotation mark
no-open-quote Removes open quotation mark
nw-resize Indicates the north west edge is to be moved
none No marker
none Pseudo-element is not generated
none No constraint with respect to float
none Counters are not incremented
none Counters are not reset
none Generate no box
none Not floated
none No height limit
none No width limit
none No quotation marks
none No text decoration
none No capitalization effects
normal Upright font
normal 400 in the ordered sequence
normal Not a small-caps font
normal "Reasonable" value based on the font of the element
normal Computes to none for the :before and :after pseudo-elements
normal Default spacing
normal Does not open an additional level of embedding with respect to the bidirectional algorithm
normal Collapses sequences of white space and breaks lines as necessary to fill line boxes
nowrap Collapses sequences of white space, but suppresses line breaks within text
number Number multiplied by the element's font-size
oblique Normal font which is slanted to the right
open-quote Replaces open quotation mark with a string from the quotes property
outside Marker box is the first inline box in the principal block box, after which the element's content flows
overline Line above text
percentage Value relative to the inital value
percentage Percentage multiplied by the element's font-size
percentage Percentage of the containing block's width
percentage Percentage of the containing block's height
percentage Height percentage calculated with respect to the height of the containing block
percentage Height percentage calculated with respect to the height of the containing block
percentage Width percentage calculated with respect to the width of the containing block
percentage Height percentage calculated with respect to the height of the containing block
percentage Width percentage calculated with respect to the width of the containing block
percentage Identation percentage calculated with respect to the width of the containing block
percentage Raises or lowers the box by a percentage of the line-height from the baseline
percentage Width percentage calculated with respect to the width of the containing block
pointer Indicates a link
pre Prevents collapsing sequences of white space and breaks lines at newlines in the source, or at occurrences of "\A" in generated content
pre-line Collapses sequences of white space and breaks lines at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes
pre-wrap Prevents collapsing sequences of white space and breaks lines at newlines in the source, at occurrences of "\A" in generated content, and as necessary to fill line boxes
progress Indicates the program is busy, but the user may still interact
relative Position is offset from normal with top, right, bottom, and left
relative-size Relative to the table of font sizes and the font size of the parent element: smaller | larger
right Right-align text
right Clears earlier right-floating boxes
right Floated to the right while content flows on the left starting at the top
rtl Right-to-left direction
run-in Generates either block or inline boxes depending on context
s-resize Indicates the south edge is to be moved
se-resize Indicates the south east edge is to be moved
sw-resize Indicates the south west edge is to be moved
show Borders and backgrounds are drawn
small-caps Lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions
small-caption Font used for labeling small controls
square Square glyph
static Position is normal
status-bar Font used in window status bars
string Inserts text
string List of quotation mark pairs
sub Lowers the baseline of the box to the position for subscripts of the parent's box
super Raises the baseline of the box to the position for superscripts of the parent's box
table Behaves like a table element
table-caption Behaves like a caption element
table-cell Behaves like a td element
table-column Behaves like a col element
table-column-group Behaves like a colgroup element
table-footer-group Behaves like a tfoot element
table-header-group Behaves like a thead element
table-row Behaves like a tr element
table-row-group Behaves like a tbody element
text Indicates text may be selected
text-bottom Aligns the bottom of the box with the bottom of the parent's content area
text-top Aligns the top of the box with the top of the parent's content area
top Aligns the top of the aligned subtree with the top of the line box
top Positions the caption box above the table box
underline Line below text
upper-alpha Uppercase ascii letters (A, B, C, ... Z)
upper-greek Uppercase classical Greek (Α, Β, Γ, ...)
upper-latin Uppercase ascii letters (A, B, C, ... Z)
upper-roman Uppercase roman numerals (I, II, III, IV, V, ...)
uppercase All characters of each word in uppercase
uri Uniform Resource Identifier (URL, URN, ...) inside url() parenthesis
uri Inserts an external resource such as an image
uri Indicates the cursor is designated by the URI
visible Visible for display
w-resize Indicates the west edge is to be moved
wait Indicates the program is busy and the user should wait

External

W3C Cascading Style Sheets, level 1

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification