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
+33-4Lines changed: 33 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -322,7 +322,7 @@ <h2>11. overflow</h2>
322
322
</div>
323
323
324
324
<divid="div_section_article">
325
-
<h2>13. media queries</h2>
325
+
<h2>12. media queries</h2>
326
326
<p><strong>Question:</strong> How could you apply css rules specific to a media?</p>
327
327
<p><strong>Answer: </strong><code>@media (max-width:700px){...}</code> means you want to apply rules to those media whose max-width is 700 px. this means every samller device will have this rule.</p>
328
328
<p><code>@media (max-width:700px) and (orientation: landscape){...}</code> will apply rules for media smaller than 700px and in landscape orientation.</p>
@@ -337,17 +337,45 @@ <h2>13. pseudo class</h2>
337
337
<p><strong>Question:</strong> Whare are some peseudo classed u have used?</p>
338
338
<p><strong>Answer: </strong> pseudo class tells you specific state of an element. allow to style element dynamically. The most popular one is <code>:hover</code>. Besides i have used <code>:visited</code>, <code>:focus</code>, <code>:nth-child</code>, <code>nth-of-type</code>, <code>:link</code>, etc.</p>
339
339
<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>
340
-
<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></p>
340
+
<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>
341
+
<h4>pseudo elements</h4>
342
+
<p>pseudo elements helps you to add cosmetics contents. for example, you can add contents before/after of a content</p>
0 commit comments