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
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -311,16 +311,8 @@ <h2>6. display vs visibility</h2>
311
311
<p>if u want to say it smartly, <code>display:none</code> cuases DOM reflow where is <code>visibility:hidden</code> doesn't. btw, what is reflow? answer. sorry i wont tell you, google it.</p>
312
312
<p>ref: <ahref="http://www.vanseodesign.com/css/visibility-vs-display/">visibility vs Display</a></p>
313
313
</div>
314
-
<divid="http_request">
315
-
<h2>7. specificity </h2>
316
-
<p><strong>Question:</strong> What is specificity? How do u calculate specificity?</p>
317
-
<p><strong>Answer:</strong> is a process of determining which css rule will be applied to an element. it actually determines which rules will take precedence. </p>
318
-
<p>inline style usually wins then ID then class value (or pseudo-class or attribute selector), unversal selector (*) has no specificity.</p>
319
-
<p>ref: <ahref="http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/">css specificity: things you need to know</a>, <ahref="http://www.standardista.com/css3/css-specificity/">specifishity</a>, <ahref="http://specificity.keegan.st/">specificiyt calculator</a></p>
320
-
</div>
321
-
322
314
<divid="mark">
323
-
<h2>8. box model</h2>
315
+
<h2>7. box model</h2>
324
316
<p><strong>Question:</strong> What are the properties related to box model?</p>
325
317
<p><strong>Answer:</strong> everything in a web page is a box where you can control size, position, background, etc. Each box/content area is optionally surrounded by padding, border and margin. When you set height and width of an element, you set content height and width.</p>
326
318
<p>Technically, height, width, padding and border are part of box model and margin is related to it.</p>
@@ -333,6 +325,13 @@ <h2>8. box model</h2>
333
325
</div>
334
326
</div>
335
327
</div>
328
+
<divid="http_request">
329
+
<h2>8. specificity </h2>
330
+
<p><strong>Question:</strong> What is specificity? How do u calculate specificity?</p>
331
+
<p><strong>Answer:</strong> is a process of determining which css rule will be applied to an element. it actually determines which rules will take precedence. </p>
332
+
<p>inline style usually wins then ID then class value (or pseudo-class or attribute selector), unversal selector (*) has no specificity.</p>
333
+
<p>ref: <ahref="http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/">css specificity: things you need to know</a>, <ahref="http://www.standardista.com/css3/css-specificity/">specifishity</a>, <ahref="http://specificity.keegan.st/">specificiyt calculator</a></p>
334
+
</div>
336
335
<divid="standard_quirks">
337
336
<h2>9. shadow DOM</h2>
338
337
<p><strong>Question:</strong> What is shadow DOM?</p>
0 commit comments