View Single Post
Old 03-14-2012, 04:07 AM   #5
casandra20
Registered User
 
Join Date: Feb 2012
Posts: 10
Cascading Style Sheets cascade. This means that the styles are applied in order as they are read by the browser. The first style is applied and then the second and so on. What this means is that if a style appears at the top of a style sheet and then is changed lower down in the document, the second instance of that style will be the one applied, not the first. For example, in the following style sheet, the paragraph text will be black, even though the first style property applied is red:

p { color: #ff0000; }
p { color: #000000; }
casandra20 is offline   Reply With Quote