You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css.html
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,11 @@
143
143
-ms-filter:opacity(30%);
144
144
-o-filter:opacity(30%);
145
145
}
146
+
#pseudoElementExamplep:before{
147
+
content:"Strating of Paragraph: ";
148
+
font-weight: bolder;
149
+
color: purple;
150
+
}
146
151
</style>
147
152
148
153
<!-- Just for debugging purposes. Don't actually copy this line! -->
@@ -389,7 +394,18 @@ <h2>13. pseudo class</h2>
389
394
<p>pseudo classes is better if you dont want to mess up with javascript however, pesudo-classes is slow to process and apply rules.</p>
390
395
<p>ref: <ahref="http://coding.smashingmagazine.com/2011/03/30/how-to-use-css3-pseudo-classes/">How to use pseudo classes</a>, <ahref="http://css-tricks.com/pseudo-class-selectors/">meet pseudo classes</a>, <ahref="https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes">list of pseudo classes</a></p>
391
396
<h4>pseudo elements</h4>
392
-
<p>pseudo elements helps you to add cosmetics contents. for example, you can add contents before/after of a content</p>
397
+
<p>pseudo elements helps you to add cosmetics contents. pseudo elements generates content where as pseudo class deals with state of the element. for example, you can style <code>:first-letter</code> of every paragrpah. similarly, <code>:first-line</code> and fancy stuff with <code>:before</code>, <code>:after</code></p>
<style><br/> p:before{<br/> content: "Strating of Paragraph: ";<br/> font-weight: bolder;<br/> color: purple;<br/> }<br/></style><br/><p>First Paragraph with some content.</p><br/><p>Second Paragraph with something else.</p>
<p><strong>Question:What are the different css filter you can use?</strong></p>
403
-
<p><strong>Answer: css filter allows u to render DOM element, image, or video. u can choose from: grayscale, blur, opacity, brightness, contrast.</strong></p>
418
+
<p><strong>Question:</strong>What are the different css filter you can use?</p>
419
+
<p><strong>Answer:</strong> css filter allows u to render DOM element, image, or video. u can choose from: grayscale, blur, opacity, brightness, contrast.</p>
0 commit comments