Child pages
  • Styling with CSS

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
label
{
color: #ffffff;
border-style: solid;
font: bold 10pt Verdana;
}

label.mytext
{
color: red;
vertical-align: middle;
border-width: 1px 1px 1px 1px;
border-color: #111111 #111111 #111111 #111111;
margin: 2px 2px 2px 2px;} 

Notice that the border style and font are not modified in the mytext class. This means if a label were specified to use mytext for its style, it would be bold, 10pt, Verdana because that is what is specified in the parent style definition. The color would be red (not black) because that was overridden by the mytext definition class.

...