summaryrefslogtreecommitdiffhomepage
path: root/css.html.markdown
diff options
context:
space:
mode:
authorRajat Gupta <rajat.explorer7@gmail.com>2016-01-29 11:34:28 +0530
committerRajat Gupta <rajat.explorer7@gmail.com>2016-01-29 11:34:28 +0530
commitfc1dd9d6af6f1e99c29655a766fda19d78440ee3 (patch)
tree2eac0a4bb6d01cb1b7c8b75b4d284026f03037d6 /css.html.markdown
parente1016455d5e4472e7a533c8cdd6df8ae4f2e7854 (diff)
Update css.html.markdown
Updated CSS for clarity.
Diffstat (limited to 'css.html.markdown')
-rw-r--r--css.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/css.html.markdown b/css.html.markdown
index 8ee4f4b9..01fdbf4f 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"]
+ - ["Rajat Gupta","httpd://github.com/rajat-explorer"]
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 a block and if the rules below don't differentiate them, 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.