10 Minute Guide to
HTML Style Sheets
Table of Contents
10 Minute Guide to HTML Style Sheets
© Copyright
Que® Corporation
, 1997.
All Rights Reserved.
1. Adding "Style to Your Web Pages
The Default Browser Style
Author Styles versus Reader Styles
HTML Design Workarounds
The CSS1 Standard
Types of Style Sheets
2. Modifying HTML Tag Styles
Creating a Sample Document
Using the
<STYLE>
Tag
Specifying Style Properties and Their Values
3. Understanding Style Inheritance
Layering Styles Effectively
Relative Values
4. Applying Styles with Class Selecters
Using the
CLASS
Attribute
Using Specific Class Selectors
Using Generic Class Selectors
5. Using Contextual Selectors
Using Third-Generation Selectors
Combining Selectors
6. Using the
<DIV>
and
<SPAN>
Tags
Using the
ID
Selector
Using the
<DIV>
Tag
Using the
<SPAN>
Tag
7. Specifying Font Families
Printed Fonts versus Screen Fonts
The Windows/Internet Explorer Fonts
Using the
font-family
Property
Specifying Alternate Fonts
Specifying Generic Font Types
8. Specifying Font Size
Using the
font-size
Property
Using Absolute Font Sizes
Using
size
Keywords
Relative Font Sizes
9. Modifying Text AttributesPart I
Using the
font-weight
Property
10. Modifying Text AttributesPart II
Using the
font-style
Property
Using the
text-decoration
Property
Using the
text-transform
Property
11. Specifying Margin Values
Page Layout Techniques with Styles
Using the
margin
Properties
Absolute Measurements
Relative Measurements
Using Negative Margin Values
12. Specifying Indentation and Justification Values
Using the
text-indent
Property
Using the
text-align
Property
13. Controlling White Space
Using the
line-height
Property
Using the
word-spacing
Property
Using the
letter-spacing
Property
14. Grouping Style Codes
Grouping Selectors
Grouping
font
Properties
Grouping
margin
Properties
15. Specifying Text and Background Values
Using the
color
Property
Specifying a Background Color
16. Using Background Graphics
Specifying Background URLs
Controlling Repetition
Positioning Graphics
Scrolling Graphics
17. Using Pseudo-Elements and Pseudo-Classes
Modifying the Appearance of Links
Modifying the Appearance of Pseudo-Elements
18. Using Style Sheet Files
Creating Style Sheets
Applying Style Sheet Files
19. Using Inline Style Codes
Using the STYLE Attribute
20. Cascading Style Precedence
Assigning Rule Priority
Understanding Rule Precedence
A. Windows and Internet Explorer TrueType Font Samples
B. Style Sheet Properties Quick Reference
Glossary
Index