Tuesday 25th of July 2017 02:32:59 PM

CSS Style Guide

In other words, if there are three values given formargin , the fourth(left) is copied from the second(right). If there are two values given,the fourth is copied from the second, and the third(bottom ) from the first(top ). Finally, if there is only onevalue given, then it's copied to all the others.

This simple mechanism allows authors to supply only as many values as

XHTML: What is XML?

XML (Extensible Markup Language) is a “super” markup language from which programmers can develop other, custom markup languages and specialized applications. XHTML (Extensible Hypertext Markup Language) is one such markup language.

Programmers already use XML for database and catalog work, and XML also acts as the foundation for standard web protocols including Scalable Vector Graphics (SVG), Synchronized Multimedia Integration Language (SMIL), Wireless Markup Language (WML), and Platform for Privacy Preferences (P3P).

For information about these web protocols, visit W3C.

« XHTML Section Index | XHTML Guidelines »

As previously discussed, if no colors are defined, then the default color is the foreground color of the element. Thus, the following declaration will be displayed as shown in Figure 7-44:

P.shade1 {border-style: solid; border-width: thick; color: gray;}
P.shade2 {border-style: solid; border-width: thick; color: gray;
border-color: black;}
Figure 7-44

Figure 7-44. Border colors based on the element's foreground (top) and the value of the border-color property (bottom)

The result is that the first paragraph has a gray border, having taken the value gray from the foreground color of

H1 {color: rgb(75%,50%,50%);}

The easiest way to visualize how these percentages correspond tocolor is to create a table of gray values. Besides, grayscaleprinting is all we can afford for this book, so that's whatwe'll have to do:

Figure 3-1 shows what the various percentage valueswill yield.

Figure 3-1

Figure 3-1. Grayscale values

BODY {font-family: Times,serif; color: black;background: white url(pix/grstripe.gif) repeat-y top left;}

For the anchors, among other things, we need to know the color valueof the green being used. The art department reports that thisparticular shade of green uses no red or blue, and just 40% green;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: