Skip to content

Commit

Permalink
fixing specificity terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdavidmills committed Feb 20, 2017
1 parent dd707b2 commit 2f9e2ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
16 changes: 8 additions & 8 deletions css/introduction-to-css/cascade-and-inheritance/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@ hr {

/* Selector weight example */

/* weight: 0201; */
/* specificity: 0201; */
#weight #outer a {
background-color: red;
}

/* weight: 0301; */
/* specificity: 0301; */
#weight #outer #inner a {
background-color: blue;
}

/* weight: 0204; */
/* specificity: 0204; */
#weight #outer div ul li a {
color: yellow;
}

/* weight: 0213; */
/* specificity: 0213; */
#weight #outer div ul .nav a {
color: white;
}

/* weight: 0115; */
/* specificity: 0115; */
#weight div div li:nth-child(2) a:hover {
border: 10px solid black;
}

/* weight: 0114; */
/* specificity: 0114; */
#weight div li:nth-child(2) a:hover {
border: 10px dashed black;
}

/* weight: 0124; */
/* specificity: 0124; */
#weight div div .nav:nth-child(2) a:hover {
border: 10px double black;
}
Expand Down Expand Up @@ -94,4 +94,4 @@ color: yellow;
#live #outer #inner a {
background-color: initial;
color: red;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The following guide outlines a marking guide for the MDN Learning Area HTML Topi

Note: These are guidelines, not set in stone rules — you are of course free to use your judgement on mark awarding when you meet an edge case, or something that isn't clear cut.

The overall mark awarded is out of 35. Work out their final mark, and then divide by 35 and multiply by 100 to give a percentage mark. For reference, you can find a [finished business card](index.html) that would be awarded top marks.
The overall mark awarded is out of 35. Work out their final mark, and then divide by 35 and multiply by 100 to give a percentage mark. For reference, you can find a [finished business card](index.html) that would be awarded top marks.

##Basic setup

Expand All @@ -21,8 +21,8 @@ The overall mark awarded is out of 35. Work out their final mark, and then divid
##Taking care of the provided selectors and rulesets

<dl>
<dt>"look at the four selectors, and calculate the specificity weight for each one." (2 marks)</dt>
<dd>The correct weights for each one are as follows (half a mark each):
<dt>"look at the four selectors, and calculate the specificity for each one." (2 marks)</dt>
<dd>The correct specificity for each one is as follows (half a mark each):
<ul>
<li>0012</li>
<li>0011</li>
Expand All @@ -48,7 +48,7 @@ The overall mark awarded is out of 35. Work out their final mark, and then divid
</dd>
</dl>

##New rulesets you need to write
##New rulesets you need to write

<dl>
<dt>"Write a ruleset that targets both the card header, and card footer..." (3 marks)</dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ html {

/* Selectors to be matched up with rulesets */




.card article img
.card footer
.card header
Expand Down Expand Up @@ -45,4 +42,3 @@ html {
max-height: 100%
float: right;
}

0 comments on commit 2f9e2ea

Please sign in to comment.