Ken Ward's Cascading
Style Sheets Tutorial


[Main Site Page: Freeing the Mind]
[Cascading Style Sheets: Contents]
[Previous: Alignment]
[This Page: Font Selector]
[Next: Anchors]

The FONT selector

We can add properties to the FONT selector when we want to override local FONT settings. The properties for FONT mentioned here can be used in other elements.

Below are my properties. I am

FONT {font-family: serif;
font-size: 120%; }

For me to have these properties I must be enclosed in <font></font> tags. My main use if to override the local font settings in the document.

Here is my code:

BODY {border: 10 solid rgb(0,0,255);text-transform: capitalize};
font{weight: bolder; color: #800000};

You may not have noticed, but I am not really written in capital letters! I got this way by:

text-transform: capitalize


The FONT selector is mainly used to override the FONT in the local document. Normally, you would set these and other properties in the BODY or other selector.

Let's look at anchors.

| Contents |