first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

CSS: List Simple Selectors Before Class Selectors

For the greatest effect in a browser's implementation of cascading order, list simple selectors before class selectors. The following CSS content illustrates this idea:

/* (c) 1998 Bryan Wilhite */
/* rasx@kintespace.com */

/* Simple Selectors */
BODY, P, TD { font-family: Verdana, Helvetica, sans-serif; }

/* CLASS-Tag Selectors */
.blockbottom { vertical-align: bottom }
.blockjustify { text-align: justify }
.blockright { text-align: right }
.blocktop { vertical-align: top }
.bold { font-weight: bold; }
.green {
    color: #00FF00;
    font-weight: bold;
}
.gunmetal {
    background-color: #C0C0C0;
    color: #000000;
}
.normal { font-weight: normal; }
.red {
    color: #FF0000;
    font-weight: bold;
}
mod date: 1998-12-18T20:49:30.000Z