Book HomeCascading Style Sheets: The Definitive GuideSearch this book Saturday 01st of November 2014 02:35:59 PM

A.3. Online Communities

One can read only so much before it comes time to join a discussion and ask some questions. There are two major venues for discussions about CSS, but each is concerned with a specific type of discussion -- so make sure you go to the right place.

A.3.1. comp.infosystems.www.authoring.stylesheets

This Usenet group, often abbreviated as ciwas (pronounced "see-wass"), is the gathering place for CSS authors. A number of experts in the field check this newsgroup regularly, this author among them, and all are there for one primary reason: to help new CSS authors over the hurdles that learning any new language will generate. The secondary reason is for the spirited debates that occasionally erupt over some aspect of CSS, or a browser's implementation thereof. Rather unusually for a newsgroup, the signal-to-noise ratio stayed fairly high for the last few years of the 1990s, and will with any luck continue in that vein.





Applies to

all elements

heightIE4 Y/Y IE5 Y/Y NN4 N/N Op3 Y/-

This is used to set the height of an element. Height is most often applied to images, but can be used on any block-level or replaced element,


Anyone who wishes to be involved in discussing the future course of CSS, and to clearing up ambiguities in the specifications, should subscribe to this list. The members of the list are all, in one fashion or another, interested in making CSS better than it is already. Please note: www-style is not the place to ask for assistance with writing CSS. For help with CSS authoring problems, visit ciwas instead. Questions beginning with "How do I ... ?" are frowned upon by the regulars of www-style and are usually redirected to a more appropriate forum such as ciwas. On the other hand, questions that begin "Why can't I ... ?" or "Wouldn't it be cool if ... ?" are generally welcome, so long as they relate to some ability that appears to be missing from CSS.

Messages to www-style are only accepted if the sender is already subscribed to the list. In order to subscribe, send email to with the word subscribe in the subject of the message; to unsubscribe, send email to with the word unsubscribe in the subject of the message.

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.

affect the type of bullet used in a list, to replace the bullet with an image, and to affect where the bullet or image appears in relation to the text of the list item.

Just in case you're unfamiliar with the concept of a "bullet," it's the little decoration to the side of a list item, as depicted in Figure 7-79.

Figure 7-79

Figure 7-79. Bullets

In an unordered list, these will be little symbols, but in an ordered<P>This paragraph contains <SUB>subscripted</SUB> text.</P>

Figure 4-32

Figure 4-32. Subscript alignment

Of course, you could make the text smaller by usingfont-size, but you have to do it yourself.

super acts in a fashion similar tosub, but in this case, the element'sbaseline (or bottom of a replaced element) is raised with respect tothe parent's baseline. Again, the distance the text will beraised is dependent on the user agent, and there is no implied change

There's a downside: as of this writing, web browsersdon't get this fixed alignment right, so this example was justan interesting theoretical exercise.

6.2.6. Bringing It All Together

Just like with the font properties,someone there has had the foresight to use web-safe colors.(Remember, this is a hypothetical situation.) We want to do the samefor the visited links, so we write:

A:link {color: rgb(0%,40%,0%);}A:visited {color: rgb(20%,20%,20%);}

This gives us our dark green and dark gray hyperlinks.

Now for headings. They're all supposed to be in a sans seriffont, but H1s have some special rules. In order tocover all the bases in a compact manner, we declare:

Figure 7-87

Figure 7-87. Bringing it all together

The values for list-style can be listed in anyorder, and any of them can be omitted. As long as one is present, therest will fill in their default values. For instance, the followingtwo rules will have the same visual effect:

LI.norm {list-style: url(img42.gif);}LI.odd {list-style: url(img42.gif) disc outside;} /* the same thing */