|
from: www.w3.org/TR/1998/REC-CSS2-19980512/propidx.html
|
Media groups column commented out since aural only rows |
another site (with examples)w3schools.com/htmldom/dom_obj_style
| Name | Values Initial value in bold special | Initial value Applies to | (Default: all) Inherit | ed Percentages | (Default: N/A) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| height | length | percentage | auto | inherit | all elements but non-replaced inline elements, table columns, and column groups | no | see explaination
| width
| max-width
| min-width
| max-height
| min-height
| background
| no |
| scroll | fixed | inherit
|
|
| no
|
| …-color
| color
*
| transparent | inherit
| | | no |
| …-image
| uri | none | inherit
| | | no |
| …-position
| [ [percentage | length ]{1,2} | [ [top | center | bottom] || [left | center | right] ] ] | inherit
| 0% 0%
| block-level and replaced elements
| no
| refer to the size of the box itself
| …-repeat
| repeat | repeat-x | repeat-y | no-repeat | inherit
| | | no |
|
| border
| [ …-width || border-style || color ] | inherit
|
| | no |
| …-top | …-right …-bottom …-left [ …-top-width || border-style || color ] | inherit
|
| | no |
| …-collapse
| collapse | separate | inherit
|
| table and inline-table elements
| yes
|
| …-spacing
| length length? | inherit
| 0 | yes |
| …-color
| color{1,4} | transparent | inherit
| | | no |
| …-top-color | …-right-… …-bottom-… …-left-… color | inherit
| the value of the 'color' property
| | no |
| …-style
| border-style{1,4} | inherit
| | | no |
| …-top-style | …-right-… …-bottom-… …-left-… border-style | inherit | dotted, dashed, insert, outset, solid,none none | | no |
| …-width
| border-width{1,4} | inherit
| | | no |
| …-top-width | …-right-… …-bottom-… …-left-… border-width | inherit
| medium | | no |
| outline
| …-color
| color
| invert
| inherit
| | | no |
interactive
| …-style
| border-style
|
inherit
| none | | no |
interactive
| …-width
| border-width | inherit
| medium | | no |
interactive
|
| clear
| none | left | right | both | inherit
| | block-level elements | no |
| clip
| shape | auto | inherit
| | block-level and replaced elements | no |
| color
| color | inherit
| | yes |
| cursor
| [ [uri ,
]*
[ auto
| default |crosshair
| text
| wait
| help
| pointer
| move | | e-resize | ne-resize | nw-resize |
|
| yes
|
interactive
| direction
| ltr | rtl | inherit | (i.e. left to right | right to left)
| all elements*
| yes
|
| display
| inline
| block
| list-item
| run-in
| compact
| marker
| | table | inline-table | table-header-group | table-footer-group | table-row-group | table-column-group | table-row | table-column | table-cell | | table-caption | none | inherit
|
| no
|
| float
| left | right | none | inherit
|
| all but positioned elements and generated content
| no
|
|
font
| [ [
font-style ||
font-variant ||
| | | yes | allowed on | font-size and line-height …-style
| normal | italic | oblique | inherit
| | | yes |
| …-variant
| normal | small-caps | inherit
| | | yes |
| …-weight
| normal | bold | bolder | lighter
| 100 | 200
| 300 | 400
| 500 | 600 | 700 | 800 | 900 | inherit
| | | yes |
| …-size
| absolute-size
| relative-size
| length
| percentage
| inherit
| medium
|
| yes*
| refer to parent element
| …-family
| [[
family‑name
|
generic-family ],
]*
[
family‑name
|
generic-family
]
|
inherit
| | | yes |
| …-size-adjust
| number | none | inherit
| | | yes |
| …-stretch
| normal
| wider
| narrower
| | | | yes |
| line-height
| normal | number | length | percentage | inherit
| | | yes | refer to the font size of the element itself
| list‑style
| [
list‑style-type ||
list‑style-position ||
list‑style-image ] | inherit
| undefined
| elements with 'display: list‑item'
| yes
|
| …-type
|
|
| yes |
| …-position
| inside | outside | inherit
|
| yes |
| …-image
| uri
| none
| inherit
| | yes |
| counter-increment | for ordered lists <LI> [ identifier integer? ]+ | none | inherit
|
|
| no
|
| counter-reset | for ordered lists <LI> marker-offset
| length | auto | inherit
|
| elements with 'display: marker' | no |
| margin
| margin‑width{1,4} | inherit
| undefined | | no | refer to width of containing block
| …-top | …-right …-bottom …-left margin-width | inherit
| 0 | | no
| overflow
| visible
| hidden | scroll | auto | inherit
| | block-level and replaced elements | no |
| padding
| padding-width{1,4} | inherit
| undefined | | no
| refer to width of containing block
| …-top | …-right …-bottom …-left padding-width | inherit
| 0
| page
| identifier | auto
|
| block-level elements
| yes
| paged
| …-break-after
| auto
| always | avoid | left | right | inherit
| no
| no
| …-break-inside
| avoid | auto
| inherit
| yes
| marks
| [ crop || cross ] | none | inherit
| | page context | N/A
| widows
| integer
|
inherit
| 2
| block-level elements
| yes
| orphans
| size
| length
{1,2} | auto | portrait | landscape | inherit
|
| the page context
| N/A
| quotes
| [openString closeString]+ | none | inherit
| Q { quotes: "\201C" "\201D" "\2018" "\2019" } | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||