HTML and CSS Reference
In-Depth Information
Table 14.1 Style Sheet Properties (continued)
Property
Value/Example
Tags Affected
Text Alignment (Continued)
text-align
left, right, center, justify
All
text-indent
3em, 15%
Block-level elements
vertical-align
baseline, sub, super, top, text-top, middle,
bottom, text-bottom, 50%
Inline elements
word-spacing
normal, 2em
All
Margins and Borders
border-bottom
<border-bottom-width> or <border-style> or
<color>
All
border-bottom-width
thin, medium, thick, 2em
All
border-color
red, green, #0C0
All
border-left
<border-left-width> or <border-style> or <color>
All
border-left-width
thin, medium, thick, 3em
All
border-right
<border-right-width> or <border-style> or
<color>
All
border-right-width
thin, medium, thick, 1cm
All
border-style
[none], dotted, dashed, solid, double, groove,
ridge[inset,outset]{1,4}
All
border-top
<border-top-width> or <border-style> or <color>
All
border-top-width
thin, medium, thick, 3em
All
border-width
thin, medium, thick, .5cm
All
clear
none, left, right, both (allows or disallows
floating elements on its sides)
All
float
left, right, or none (wraps text around an
element, such as an image)
All
height
12em, auto
Block-level and
replaced element
margin
5em, 3em, 2em, 1em (top, right, bottom, left)
All
margin-bottom
100px, 50%
All
margin-left
.5in, 40%
All
 
Search WWH ::




Custom Search