Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 45,144,786 Downloads in 87 Countries

Tell a Friend About Our Cool Software

CoffeeCup StyleSheet Maker Help Center

Sign In For Priority Support Forgot yours ?
More StyleSheet Maker Help: Other Resources: Contact CoffeeCup:

Send Snail Mail:
CoffeeCup Software
165 Courtland Street
Suite A, Box 312
Atlanta, GA 30303

Give us a call:
Toll Free: 866.734.HTML (4865)
Sales Hotline: 678.495.3480
Fax: 678.495.3481

Defining a New Style

There are three ways to define a new style.

Tags-
This will define a style for an existing tag. Simply click the arrow box, and select a tag from the list. This is usefull if you want all the tags on your page to have a certain property. For instance, if you want all visited links to have a certain color, select A:visited from the list, then define the properties of the style.

Class-
Here you can define a style with a name of your choosing. For example, you could define a style sheet named Bob. Then, in your page any time you want to apply the style Bob to a tag, you would use class="Bob". This is useful if you want some tags, but not all to have a certain style. For instance:

<P class="Bob">Hello</P>
<P>Hello</P>

The word first Hello would have the properties of Bob, while the second would not.

ID-
An ID is similar to a Class, except you should only use ID once per document. For instance, if you defined an ID named Tom, you should not do this:

<P ID="Tom">Hello</P>
<P ID="Tom">Welcome to my website</P>

ID's should only be used once, especially if you plan to do any scripting, as this may lead to errors in your script. If you need to use a certain style more once, use a Class identifier instead of ID.

After you have defined a new style, the next step is to Edit the Properties of your Style. This will define exactly how the style will act when you apply it to your page.

Was this article helpful?

StyleSheet Maker Help Index | StyleSheet Maker Homepage

Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.