What CSS defs/values exist (techdoc)
Sure, you can use
W3.org/TR/REC-CSS2 standard document or the
selfhtml
CSS overview
(de). This list is showing the items in subsections
relating to common usage - plus traditional html.
first, remember the "display" that is otherwise only
required when using CSS in XML
documents - use basic html display tags in <html>
which are <span> <div>
<table> <tr> <td> plus
<div style="float:..."> for floating elements.
Sure, you can add all defs in a "style=" attribute but better assemble
them in a <style> head block. If you do not want to invent a
new "class=" then use "id=42" attribute plus a css "#42" style line.
| | <span> defs |
font-style :
|
normal italic oblique
|
font-size :
|
smaller larger / xx-small x-small small medium large x-large xx-large
|
font-weight :
|
lighter normal bolder bold / 100 200 .. 900
|
text-decoration :
|
none underline overline line-through blink
|
color :
|
#FFEECC / red green blue
|
visibility :
|
visible hidden
|
font-family :
|
serif sans-serif cursive fantasy monospace / FontName
|
font-variant :
|
normal small-caps
|
text-transform :
|
none lowercase uppercase capitalize
|
font-stretch :
|
wider narrower / ultra-condensed extra-condensed semi-condensed
condensed expanded semi-expanded extra-expanded ultra-expanded
|
word-spacing :
letter-spacing :
|
1em / 1mm / 2px
|
| | <div> defs |
text-align :
|
left center right / justify
|
vertical-align :
|
bottom middle top / sub baseline super / text-bottom text-top
|
white-space :
|
pre normal nowrap
|
text-indent :
|
1em / 1cm / 20px
|
line-height :
|
120% (per 1em)
|
margin-top : margin-bottom : margin-left : margin-right :
padding-top : padding-bottom : padding-left : padding-right :
|
margin :
padding :
|
1cm / 20 px
(without -top suffix then all four sides are set)
(on adjascent div elements only the bigger margin is used
plus the sum of padding of both)
|
| | <img/td> defs |
background-color :
|
#FFEECC / red green blue
|
background-image :
|
url(URI)
|
border-width :
|
thin medium thick / 1px
|
border-color :
|
#FFEECC / red green blue
|
border-style :
|
solid double / none hidden / dotted dashed / groove ridge inset outset
|
| | ... |
| | <table> defs |
| | ... |
| | <float> defs |
float :
|
none left right
|
clear :
|
none left right both
|
| | <ul/ol> defs |
list-style-type :
|
none square circle disc
decimal decimal-leading-zero / lower-roman upper-roman /
lower-alpha upper-alpha lower-greek
|
list-style-image :
|
url(URI)
|
list-style-position :
|
outside inside
|
| | <body> defs |
| | ... |
|