Skip to content

Commit 1ac992e

Browse files
committed
added three more links
1 parent e590e43 commit 1ac992e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

css.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ <h2>css related interview questions</h2>
211211
<li><a href="#mediaQueries">media queries</a></li>
212212
<li><a href="#pseudoClass">pseudo class and element</a></li>
213213
<li><a href="#verticalCenter">vertical center issues</a></li>
214-
<li><a href="#mtuli_lang">How to serve html in multiple language?</a></li>
215-
<li><a href="#standard_quirks">Explain standard and quirks mode.</a></li>
216-
<li><a href="#semantic_html">Array methods in string?</a></li>
214+
<li><a href="#optimizeSelector">optimize selector</a></li>
215+
<li><a href="#importStyle">@import</a></li>
216+
<li><a href="#cssSprite">sprite</a></li>
217217
</ol>
218218
<div id="float">
219219
<h2>1. float</h2>
@@ -412,40 +412,40 @@ <h2>12. vertical Center</h2>
412412
</div>
413413
<p>ref: <a href="http://www.vanseodesign.com/css/vertical-centering/">6 methods for vertical center</a>, <a href="http://coding.smashingmagazine.com/2013/08/09/absolute-horizontal-vertical-centering-css/">Absolute horizontal and vertical centering</a></p>
414414
</div>
415-
<div id="something">
415+
<div id="optimizeSelector">
416416
<h2>13. optimize selector</h2>
417417
<p><strong>Question:</strong> How do you optimize css selectors?</p>
418418
<p><strong>Answer: </strong> This is very open and depend on what you are trying to achieve. If i order selectors interms of render speed it would be like id, class, tag, siblings, child, descendent, universal, attribute, pseudo. Speed of ID and class is very close. However your code should be readable, maintainable and DRY along with highly performant.</p>
419419
<p>The best practices in general are: avoid universal selectors, don't repeat yourself, remove redundant selectors, be as specific as possible, and keep learning.</p>
420420
<p>ref: <a href="http://realityonweb.com/cascading-style-sheet-css/performance-improvement-by-writing-efficient-css-selector/">Efficient CSS selectors</a>, <a href="http://css-tricks.com/efficiently-rendering-css/">efficently rendering</a></p>
421421
</div>
422-
<div id="something">
422+
<div id="importStyle">
423423
<h2>14. @import</h2>
424424
<p><strong>Question:</strong> How can you load css resources conditionally?</p>
425425
<p><strong>Answer:</strong> @import allows you to load/import stylesheet by using a prth (uri) representing the location of the file. You can define one or more media by comma seperation for which you want to load the stylesheet. If browser dont support the media stylesheet will not be loaded.</p>
426426
<p>ref: be careful while using @import (<a href="http://www.stevesouders.com/blog/2009/04/09/dont-use-import/">don't use @import</a>)</p>
427427
</div>
428-
<div id="something">
428+
<div id="cssSprite">
429429
<h2>15. sprite</h2>
430430
<p><strong>Question:</strong> Why would you use sprites?</p>
431431
<p><strong>Answer:</strong> When you have multiple images/icons, browser makes seperate call to the server for each one of them. sprite is a technique to combine all of them (usually similar one in terms of type of image. For example, you will put jpg in one sprite) in one image. you can later optimize the image. To display the icon you set height, width and background position.</p>
432432
<p>popular libraries like bootstrap use this technques. If you repeat the image. want to scale you have to be careful with sprite.</p>
433433
<p>ref: <a href="http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/">css sprites</a>, <a href="http://css.spritegen.com/">generate sprites</a></p>
434434
</div>
435-
<div id="http_request">
435+
<div id="specificity">
436436
<h2>16. specificity </h2>
437437
<p><strong>Question:</strong> What is specificity? How do u calculate specificity?</p>
438438
<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>
439439
<p>inline style usually wins then ID then class value (or pseudo-class or attribute selector), unversal selector (*) has no specificity.</p>
440440
<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>
441441
</div>
442-
<div id="standard_quirks">
442+
<div id="shadowDom">
443443
<h2>17. shadow DOM</h2>
444444
<p><strong>Question:</strong> What is shadow DOM?</p>
445445
<p><strong>Answer:</strong> encapsulate part of a DOM. hide subtree. you can have same ID in different shadow DOM. Polymers uses it. This way your DOM becomes reusable and u dont have to do iframe. if interviewer is not happy with your answer give him the links and tell him to spend a weekend on reading.</p>
446446
<p>ref: <a href="http://www.w3.org/TR/shadow-dom/#introduction">W3: shadow-DOM</a>, <a href="http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom/">html5rock: shadow DOM</a></p>
447447
</div>
448-
<div id="semantic_html">
448+
<div id="transition">
449449
<h2>18. transition</h2>
450450
<p><strong>Question:</strong> What do u know about tranisition?</p>
451451
<p><strong>Answer:</strong> transition allows to add an effect while changing from one style to another. You can set the which property you want to transition, duration, how u want to transit (linear, ease, ease-in, ease-out, cubic-bezier) and delay when transition will start. you can transition more than one property by comma seperation</p>
@@ -491,15 +491,15 @@ <h2>19. filter</h2>
491491
</div>
492492
<p>ref: <a href="http://www.html5rocks.com/en/tutorials/filters/understanding-css/">Understanding css filter effect</a></p>
493493
</div>
494-
<div id="mtuli_lang">
494+
<div id="preProcessor">
495495
<h2>20. pre processor</h2>
496496
<p><strong>Question:</strong> What are the reasons to use preprocessor?</p>
497497
<p><strong>Answer:</strong> you write css in high level with some special syntax (declaring variable, nested syntax, mathmetical operations, etc.) and that is compiled to css. Preprocessor helps you to speed up develop, maintain, ensure best practices and also confirms concatenation, compression, etc.</p>
498498

499499
ref: <a href="http://css-tricks.com/musings-on-preprocessing/">css preprocessor</a>, <a href="https://developers.google.com/chrome-developer-tools/docs/css-preprocessors">working with preprocessor</a>
500500
</div>
501-
<div id="download_order">
502-
<h2>21. show & tell</h2>
501+
<div id="seeAndTell">
502+
<h2>21. see & tell</h2>
503503
<p><strong>Question:</strong> What is the color of text sausage for he following rule?</p>
504504
<strong>html:</strong>
505505
<pre><code>

0 commit comments

Comments
 (0)