This example gives an overview of CSS specificity. The explanation is all in the source code.
Block1
Block2