Selectors, properties, & values

Publish

Platform_KC
On Premises

When you want to adjust a style sheet, most often you'll want to change the background or alter the display of the styles. Using the linked style sheet you only need to change the style or background in one place. Next time you publish the changes will be used.

Parts of the page that can be modified from the style sheet are listed using either of the following layouts:

selector {property: value; property: value;}

-or-

selector {

property: value;

property: value;

}

The second layout because it makes the style sheet easier to read.

  • The selector is the part of the page defined by a set of rules, for example the name of the style bodytext.
  • The property is the aspect or attribute that can be changed, for example font-weight.
  • The value is the characteristic used by the property, for example bold.
  • Each property is separated from its value with a colon (:).
  • Each property is separated from the next property with a semicolon (;).
  • All properties and values defined (for example, for a style) are included in a set of braces ({}).