Home  |  Latest News  |  Contribute  |  F.A.Q.  |  Account  |  Scripts | About
Search ASPNut:
 
ASP Reference
Server Variables
ASP Glossary
Related Sites

Free Components

HTML Reference
Web Colors
Entities
CSS Level 1
Encode/Decode
Glossary

Our Sponsors
ASP Nuke CMS
Free Auctions
PHP 5 Script
Funktastic Blog
ULost Directory
Team Task

 

 

 

 

 

 

 

 

 

 

 

 

Grouping Constructs

In order to simplify the definition of CSS properties. Cascading Style Sheets support grouping of items. There are three different ways that items in your CSS can be grouped.

You may define classes for multiple elements by creating a comma-separated list of elements before the properties. This is done as shown below:

H1, H2, H3 { font-family: helvetica }

Secondly, you may group multiple properties together when defining a style. This simply means that multiple attributes are lumped together inside the curly braces and separated by semi-colons.

H1 { 
  font-weight: bold; 
  font-size: 12pt;
  line-height: 14pt; 
  font-family: helvetica; 
  font-variant: normal;
  font-style: normal;
}

Finally, there are specific properties which allow their own grouping in the style declaration. An example of this is shown below:

H1 { font: bold 12pt/14pt helvetica }

Table of Contents

Orvado Technologies

ASP Nuke CMS
Free Open Source
Content Manager
HomeFix Boards
Home Remodeling
Message Boards

Contact Us | Contribute | About | Site Map



"In war there is no substitute for victory." - Douglas MacArthur

©2007 Orvado Technologies, All Rights Reserved
ASP Nut provides articles and reference documentation for Active Server Page developers.