Skip to content

Commit e590e43

Browse files
committed
added 6 more links
1 parent e487dc7 commit e590e43

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
@@ -205,12 +205,12 @@ <h2>css related interview questions</h2>
205205
<li><a href="#units">pixels, em vs percent</a></li>
206206
<li><a href="#position">relative, absolute or fixed position.</a></li>
207207
<li><a href="#displayVisibility"><code>display:none</code> vs <code>visibility:hidden</code></a></li>
208-
<li><a href="#http_request">Will browser make http request for the following case?</a></li>
209-
<li><a href="#download_order">Which resource would be downloaded first?</a></li>
210-
<li><a href="#optional_tag">What is optional tag?</a></li>
211-
<li><a href="#div_span">What are the differences between div and span?</a></li>
212-
<li><a href="#div_section_article">How you would differentiate div, section and article?</a></li>
213-
<li><a href="#svg_canvas">How to select svg or canvas for your site?</a></li>
208+
<li><a href="#inlineBlock">inline, inline-block vs block</a></li>
209+
<li><a href="#boxModel">box Model</a></li>
210+
<li><a href="#overflow">overflow</a></li>
211+
<li><a href="#mediaQueries">media queries</a></li>
212+
<li><a href="#pseudoClass">pseudo class and element</a></li>
213+
<li><a href="#verticalCenter">vertical center issues</a></li>
214214
<li><a href="#mtuli_lang">How to serve html in multiple language?</a></li>
215215
<li><a href="#standard_quirks">Explain standard and quirks mode.</a></li>
216216
<li><a href="#semantic_html">Array methods in string?</a></li>
@@ -311,7 +311,7 @@ <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="inline_block">
314+
<div id="inlineBlock">
315315
<h2>7. inline block</h2>
316316
<p><strong>Question:</strong> What are the differences between inline, block and inline-block</p>
317317
<p><strong>Answer: </strong></p>
@@ -320,7 +320,7 @@ <h2>7. inline block</h2>
320320
<p><code>inline-block</code>, will be similar to inline and will go with the flow of the page. Only differences is this this will take height and width.</p>
321321
<p>ref: <a href="http://css-tricks.com/almanac/properties/d/display/">display</a></p>
322322
</div>
323-
<div id="mark">
323+
<div id="boxModel">
324324
<h2>8. box model</h2>
325325
<p><strong>Question:</strong> What are the properties related to box model?</p>
326326
<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>
@@ -334,7 +334,7 @@ <h2>8. box model</h2>
334334
</div>
335335
</div>
336336
</div>
337-
<div id="svg_canvas">
337+
<div id="overflow">
338338
<h2>9. overflow</h2>
339339
<p><strong>Question:</strong> Does overflow: hidden create a new block formatting context?</p>
340340
<p><strong>Answer:</strong> yes</p>
@@ -362,7 +362,7 @@ <h2>9. overflow</h2>
362362
<p>ref: <a href="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
363363
</div>
364364

365-
<div id="div_section_article">
365+
<div id="mediaQueries">
366366
<h2>10. media queries</h2>
367367
<p><strong>Question:</strong> How could you apply css rules specific to a media?</p>
368368
<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>
@@ -373,7 +373,7 @@ <h2>10. media queries</h2>
373373
<p><strong>Answer:</strong> Browser's Viewport</p>
374374
<p>ref: <a href="http://mobile.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/">how to use media queries</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries">css media queries</a>, <a href="http://www.w3.org/TR/css3-mediaqueries/#media0">W3: media queries</a></p>
375375
</div>
376-
<div id="div_span">
376+
<div id="pseudoClass">
377377
<h2>11. pseudo class</h2>
378378
<p><strong>Question:</strong> What are the some peseudo classed u have used?</p>
379379
<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>
@@ -394,7 +394,7 @@ <h4>pseudo elements</h4>
394394
</div>
395395
<p>ref: <a href="http://nicolasgallagher.com/an-introduction-to-css-pseudo-element-hacks/">intro to css pseudo element</a>, <a href="http://coding.smashingmagazine.com/2011/07/13/learning-to-use-the-before-and-after-pseudo-elements-in-css/">:before :after</a>, <a href="http://css-tricks.com/css-content/">css content</a>, <a href="http://www.w3.org/TR/CSS21/generate.html">W3: generate content</a></p>
396396
</div>
397-
<div id="something">
397+
<div id="verticalCenter">
398398
<h2>12. vertical Center</h2>
399399
<p><strong>Question:</strong> How do you align a p center-center inside a div?</p>
400400
<p><strong>Answer:</strong> <code>text-align:center</code>will do the horizontal alignment but <code>vertical-laign:middle</code> will not work here. there are couple of different ways to solve this problem and one of them are positioning. You make the parent as relative position and child as absolute positioning. And then define all position parameter as sero and width 50% and height 30% (sounds messy look at the example and read ref) </p>

0 commit comments

Comments
 (0)