Monday 20th of February 2017 06:47:32 PM

Sitemap


Index

   WDG's CSS Reference

   WDG's Copyright and Trademark Information

   About the Web Design Group

   Style Sheets Now!

   CSS Quick Tutorial

   CSS Structure and Rules

   Declarations

   Pseudo-classes and Pseudo-elements

   Cascading Order

   CSS1 Units

   CSS Properties

   Linking Style Sheets to HTML

   Style Sheet Dependence

   CSS References

   Syntax Used in CSS Properties

   Font Family

   Font Style

   Font Variant

   Font Weight

   Font Size

   Font

   Color

   Background Color

   Background Image

   Background Repeat

   Background Attachment

   Background Position

   Background

   Word Spacing

   Letter Spacing

   Text Decoration

   Vertical Alignment

   Text Transformation

   Text Alignment

   Text Indentation

   Line Height

   Top Margin

   Right Margin

   Bottom Margin

   Left Margin

   Margin

   Top Padding

   Right Padding

   Bottom Padding

   Left Padding

   Padding

   Top Border Width

   Right Border Width

   Bottom Border Width

   Left Border Width

   Border Width

   Border Color

   Border Style

   Top Border

   Right Border

   Bottom Border

   Left Border

   Border

   Width

   Height

   Float

   Clear

   Display

   Whitespace

   List Style Type

   List Style Image

   List Style Position

   List Style

   liam@htmlhelp.com

   john@htmlhelp.com

   Arnoud "Galactus" Engelfriet

   Ian Butler

   Tina Marie Holmboe

   Nick Kew

   HTML 3.2

   Amaya

   Emacs-W3

   CSS Positioning

   Fonts and the Web

   ACSS

   Printing support

   Layout

   Arena

   MSIE 3

   Navigator 4.0

   Style

   CODE

   Nick Kew

   BODY element

   HR - horizontal rule

   DD - definition

   Paragraph

   Emphasis

   LINK element

   HEAD element

   TITLE element

   BLOCKQUOTE

   DFN - definition

   DIV - logical division

   WebTechs

   IMG - images

   INPUT element

   TEXTAREA

   A - anchor element

Let's say that you want to set top and bottom margins on boldfaced text. You declare:

B {margin-top: 25px; margin-bottom: 50px;}

This is allowed in the specification, but it will have absolutely no effect on the line height, and since margins are effectively transparent, this will have no visual effect whatsoever -- as you can see for yourself in Figure 7-21.

Figure 7-21

Figure 7-21. Margins on an inline element

DIV * {color: purple;}

At first glance, this seems no different than if the * were left out, instead relying on inheritance to carry the color to all descendants of DIV. However, there is a very real difference: the rule shown would match every DIV descendant, and therefore override the inheritance mechanism. Thus, even anchors (which are descendants of a DIV) would be made purple under the given rule, whereas simple inheritance would not be

1.4.1.2. Alternate style sheets

Unfortunately, as of this writing, browsers don't make it veryeasy to select alternate style sheets, assuming that they can do soat all. Should a browser be able to use alternate style sheets, itwill use the values of the TITLE attributes togenerate a list of style alternatives. So you could write thefollowing:

<LINK REL="stylesheet" TYPE="text/css"