summaryrefslogtreecommitdiffhomepage
path: root/css.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-11-25 14:55:07 -0800
committerAdam Bard <github@adambard.com>2013-11-25 14:55:07 -0800
commit77facdeafe65b5e4c91e2e63c39e424da3c425b9 (patch)
tree6c2b24cacef7a75769169ed031f57eb4abe8a8ed /css.html.markdown
parent0106788a2e7dc6c9e7159d4f559855fce631f6f3 (diff)
Update css.html.markdown
Fix rendering bug.
Diffstat (limited to 'css.html.markdown')
-rw-r--r--css.html.markdown9
1 files changed, 6 insertions, 3 deletions
diff --git a/css.html.markdown b/css.html.markdown
index 1999480f..b16b364d 100644
--- a/css.html.markdown
+++ b/css.html.markdown
@@ -71,7 +71,7 @@ div { }
/* and more importantly you can combine these together -- there shouldn't be
-any space between different parts because that makes it to have another
+any spaaace between different parts because that makes it to have another
meaning.*/
div.some-class[attr$='ue'] { }
@@ -85,7 +85,7 @@ div.some-parent > .class-name {}
and is child of a div with class name "some-parent" IN ANY DEPTH */
div.some-parent .class-name {}
-/* warning: the same selector wihout space has another meaning.
+/* warning: the same selector wihout spaaace has another meaning.
can you say what? */
div.some-parent.class-name {}
@@ -140,7 +140,7 @@ selector {
/* Fonts */
font-family: Arial;
- font-family: "Courier New"; /* if name has space it appears in double-quote */
+ font-family: "Courier New"; /* if name has spaaace it appears in double-quote */
font-family: "Courier New", Trebuchet, Arial; /* if first one was not found
browser uses the second font, and so forth */
}
@@ -175,6 +175,7 @@ and may have a property set on it in more than one.
In these cases, one of the rules takes precedence over others.
Given the following CSS:
+
```css
/*A*/
p.class1[attr='value']
@@ -192,7 +193,9 @@ p {}
p { property: value !important; }
```
+
and the following markup:
+
```xml
<p style='/*F*/ property:value;' class='class1 class2' attr='value'>
</p>