HTML and CSS Reference
In-Depth Information
Table 14.13 style Object Properties (continued)
HTML Tags
Affected
Property
Example CSS Value
Colors
backgroundColor
red, blue, #F00
All
color
red, green, #F00, rgb(255,0,0)
All
Images
backgroundAttachment
scroll, fixed
All
backgroundImage
URL (bay.gif), none
All
backgroundPosition
right top, top center, center, bottom, 100% 100%,
0% 0%, 50% 50%
Block-level and
replaced elements
backgroundRepeat
repeat, repeat-x (horizontally), repeat-y (vertically),
no-repeat
All
Text Alignment
letterSpacing
normal, 0.1em
All
lineHeight
normal, 1.2, 1.2em, 120%
All
textAlign
left, right, center, justify
All
textDecoration
underline, overline, line-through, blink
All
textIndent
3em, 15%
Block-level elements
textTransform
capitalize, uppercase, lowercase, none
All
verticalAlign
baseline, sub, super, top, text-top, middle, bottom,
text-bottom, 50%
Inline elements
wordSpacing
normal, 2em
All
Margins and Borders
align
All
borderStyle
none, solid, 3D
All
borderWidth
thin, medium, thick, 2em
All
margin
5em, 3em, 2em, 1em (top, right, bottom, left)
All
marginBottom
100px, 50%
All
marginLeft
.5in, 40%
All
Search WWH ::




Custom Search