This example explains a couple subtle points about document order and CSS specificity. The explanation is all in the source code.
Block with two style classes.
Block with same two style classes, just listed in reverse order.