diff options
author | Geoff Liu <cangming.liu@gmail.com> | 2016-03-14 00:05:37 -0500 |
---|---|---|
committer | Geoff Liu <cangming.liu@gmail.com> | 2016-03-14 00:05:37 -0500 |
commit | 1478a23811a138bdd7d1dd618f15e4ac0d2b9df9 (patch) | |
tree | c2b0baf026dac792527704afa03f4b145683dec9 | |
parent | 143352bb1357ec8a005e042ae2281bd0d8326bfb (diff) | |
parent | e85f9bf8f247becb78dda2d798e8ed173e1d041b (diff) |
Merge pull request #2121 from rajat-explorer/patch-1
Update css.html.markdown
-rw-r--r-- | css.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/css.html.markdown b/css.html.markdown index 8ee4f4b9..4ec95f8b 100644 --- a/css.html.markdown +++ b/css.html.markdown @@ -7,6 +7,7 @@ contributors: - ["Connor Shea", "https://github.com/connorshea"] - ["Deepanshu Utkarsh", "https://github.com/duci9y"] - ["Tyler Mumford", "https://tylermumford.com"] + filename: learncss.css --- @@ -195,7 +196,7 @@ Save a CSS stylesheet with the extension `.css`. ## Precedence or Cascade -An element may be targeted by multiple selectors and may have a property set on it in more than once. In these cases, one of the rules takes precedence over others. Rules with a more specific selector take precedence over a less specific one, and a rule occuring later in the stylesheet overwrites a previous one. +An element may be targeted by multiple selectors and may have a property set on it in more than once. In these cases, one of the rules takes precedence over others. Rules with a more specific selector take precedence over a less specific one, and a rule occuring later in the stylesheet overwrites a previous one (which also means that if two different linked stylesheets contain rules for an element and if the rules are of the same specificity, then order of linking would take precedence and the sheet linked latest would govern styling) . This process is called cascading, hence the name Cascading Style Sheets. |