The CSS Cascade

Introduction

Overview

The Cascade's Order of Precedence

Property Value Precedence In Detail

The following are listed in order from the least to the most control over determining what value gets applied.

User Agent (the browser's) default style sheet

User's style sheet

Inherited from parent element

Specificity

Proximity

Inline

!important

For more information

General references

User style sheets

User Agent (browser default) style sheets