24.08.2016 Views

(Shelly Cashman Series) Gary B. Shelly, H. Albert Napier, Ollie N. Rivers-Web design_ introductory concepts and techniques -Cengage Learning (2008)

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Style Sheet Conflicts APP 27<br />

Figure C-5 provides a quick reference for CSS properties.<br />

CSS Properties Quick Reference<br />

Background<br />

Property<br />

background-color<br />

background-image<br />

Description<br />

Specifies the background color in hex or word codes,<br />

as in body {background-color: #ffffff}<br />

Specifies the background image<br />

@SOURCE<br />

Tips <strong>and</strong> Tricks<br />

For tips about using CSS<br />

to insert figures with<br />

captions, create different<br />

types of menus, select<br />

font families, align text<br />

<strong>and</strong> images, <strong>and</strong> more,<br />

visit the <strong>Web</strong> Design<br />

Appendix C Online<br />

Companion page<br />

(scsite.com/web3e/appc)<br />

<strong>and</strong> then click Tips<br />

<strong>and</strong> Tricks in the<br />

@Source links.<br />

background-attachment<br />

background-position<br />

Specifies how a background image scrolls<br />

Sets the position of a background image<br />

Font<br />

font-family<br />

font-style<br />

font-size<br />

font-weight<br />

font-variant<br />

Specifies typeface<br />

Specifies the normal or italic style<br />

Specifies the size of the text as absolute, relative, a<br />

percentage, or by length<br />

Specifies normal or bold<br />

Specifies normal or small caps<br />

Margin<br />

margin-left, margin-right,<br />

margin-top, margin-bottom<br />

Specifies the amount of space around an element<br />

Position<br />

position<br />

Specifies the placement of an image; absolute for<br />

specific placement or relative for placement in<br />

relation to other images<br />

Text<br />

text-align<br />

text-decoration<br />

text-indent<br />

word-spacing<br />

text-transform<br />

color<br />

Aligns text horizontally<br />

Adds underline, line-through, or other text<br />

decoration<br />

Specifies the amount of the first-line indent from a<br />

paragraph’s left margin<br />

Controls the amount of spaces between words<br />

Specifies uppercase or lowercase<br />

Specifies text color<br />

Figure C-5 Commonly used CSS properties.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!