Skip to content

Commit d9d9915

Browse files
committed
down grade speciity
1 parent 153e58b commit d9d9915

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

css.html

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,8 @@ <h2>6. display vs visibility</h2>
311311
<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>
312312
<p>ref: <a href="http://www.vanseodesign.com/css/visibility-vs-display/">visibility vs Display</a></p>
313313
</div>
314-
<div id="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: <a href="http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/">css specificity: things you need to know</a>, <a href="http://www.standardista.com/css3/css-specificity/">specifishity</a>, <a href="http://specificity.keegan.st/">specificiyt calculator</a></p>
320-
</div>
321-
322314
<div id="mark">
323-
<h2>8. box model</h2>
315+
<h2>7. box model</h2>
324316
<p><strong>Question:</strong> What are the properties related to box model?</p>
325317
<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>
326318
<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>
333325
</div>
334326
</div>
335327
</div>
328+
<div id="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: <a href="http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/">css specificity: things you need to know</a>, <a href="http://www.standardista.com/css3/css-specificity/">specifishity</a>, <a href="http://specificity.keegan.st/">specificiyt calculator</a></p>
334+
</div>
336335
<div id="standard_quirks">
337336
<h2>9. shadow DOM</h2>
338337
<p><strong>Question:</strong> What is shadow DOM?</p>

0 commit comments

Comments
 (0)