Skip to content

Commit e487dc7

Browse files
committed
added top 6 links
1 parent 88c8f82 commit e487dc7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

css.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ <h2>css related interview questions</h2>
198198
</div>
199199

200200
<!-- <h3>If you have hard time to follow this video, you can see the content below. Things you will learn-</h3> -->
201-
<!-- <ol>
202-
<li><a href="#doctype">what is the use of html doctype?</a></li>
203-
<li><a href="#data_attribute">What is the use of data-* attribute?</a></li>
204-
<li><a href="#keygen">How can you generate public key in html?</a></li>
205-
<li><a href="#bdo">How do you change direction of html text?</a></li>
206-
<li><a href="#mark">How can you highlight text in html?</a></li>
207-
<li><a href="#scopped">can you apply css to a part of html document only?</a></li>
201+
<ol>
202+
<li><a href="#float">float</a></li>
203+
<li><a href="#clear">clear sides of floats</a></li>
204+
<li><a href="#rapidFire">tricky questions</a></li>
205+
<li><a href="#units">pixels, em vs percent</a></li>
206+
<li><a href="#position">relative, absolute or fixed position.</a></li>
207+
<li><a href="#displayVisibility"><code>display:none</code> vs <code>visibility:hidden</code></a></li>
208208
<li><a href="#http_request">Will browser make http request for the following case?</a></li>
209209
<li><a href="#download_order">Which resource would be downloaded first?</a></li>
210210
<li><a href="#optional_tag">What is optional tag?</a></li>
@@ -214,8 +214,8 @@ <h2>css related interview questions</h2>
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>
217-
</ol> -->
218-
<div id="doctype">
217+
</ol>
218+
<div id="float">
219219
<h2>1. float</h2>
220220
<p><strong>Question:</strong> How float works?</p>
221221
<p><strong>Answer:</strong> float is to push element on a side of a page with text wrap around it. you can create entire page or smaller area by using float. if size of a floated element changes, text around it will reflow to accomodate the changes. You can have float left, right, none or inherit.</p>
@@ -240,9 +240,9 @@ <h2>1. float</h2>
240240
<p><strong>extra:</strong> read the positioning constraints in <a href="http://www.w3.org/TR/CSS1/#floating-elements">W3.org: floating elements</a>.</p>
241241
ref: <a href="http://css-tricks.com/all-about-floats/">css-tricks: float</a>, <a href="http://alistapart.com/article/css-floats-101">float 101</a>
242242
</div>
243-
<div id="data_attribute">
243+
<div id="clear">
244244
<h2>2. clear</h2>
245-
<p><strong>Question:</strong> How can you clear side of a floating element?</p>
245+
<p><strong>Question:</strong> How can you clear sides of a floating element?</p>
246246
<p><strong>Answer:</strong> If you clear a silde of an element, floating elements will not be accepted on that side. With 'clear' set to 'left', an element will be moved below any floating element on the left side. clear is used to stop wrap of an element around a floating element.</p>
247247
<div>
248248
<button id = "clear" type="button" class="toggleExample btn btn-primary">show example</button>
@@ -265,7 +265,7 @@ <h2>2. clear</h2>
265265
<p><strong>Answer:</strong> You can use <code>clear:both</code> in an empty div <code>&lt;div style="clear: both;"&gt;&lt;/div&gt;</code>, you can use overflow hidden or scroll and you can float the parent as well.</p>
266266
<p>ref: <a href="http://www.w3.org/TR/CSS1/#clear">W3.org: clear</a>
267267
</div>
268-
<div id="keygen">
268+
<div id="rapidFire">
269269
<h2>3. rapid fire</h2>
270270
<p><strong>Question:</strong> Does css properties are case sensitive?</p>
271271
<p><strong>Answer:</strong> no.</p>
@@ -284,7 +284,7 @@ <h2>3. rapid fire</h2>
284284
</div>
285285

286286

287-
<div id="bdo">
287+
<div id="units">
288288
<h2>4. units</h2>
289289
<p><strong>Question:</strong> What do you prefer px, em % or pt and why?</p>
290290
<p><strong>Answer:</strong> it depends.</p>
@@ -294,7 +294,7 @@ <h2>4. units</h2>
294294
<p>pt, points are traditionally used in print. 1pt = 1/72 inch and it is fixed-size unit.</p>
295295
<p>ref: <a href="http://css-tricks.com/the-lengths-of-css/">css-tricks: length</a>, <a href="http://css-tricks.com/css-font-size/">css-tricks: px, em, %</a>, <a href="http://kyleschaeffer.com/development/css-font-size-em-vs-px-vs-pt-vs/">css font-size</a> </p>
296296
</div>
297-
<div id="scopped">
297+
<div id="position">
298298
<h2>5. position</h2>
299299
<p><strong>Question:</strong> How absolute, relative, fixed and static position differ?</p>
300300
<p><strong>Answer:</strong> </p>
@@ -304,7 +304,7 @@ <h2>5. position</h2>
304304
<p><em>static</em>, element will be positioned based on the normal flow of the document. usually, u will use position static to remove other position mibht be applied to an element.</p>
305305
<p>ref: <a href="http://www.barelyfitz.com/screencast/html-training/css/positioning/">css positioning in ten steps</a>, <a href="http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/">css position</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN: position</a></p>
306306
</div>
307-
<div id="">
307+
<div id="displayVisibility">
308308
<h2>6. display vs visibility</h2>
309309
<p><strong>Question:</strong> What are the differences between visibility hidden and display none?</p>
310310
<p><strong>Answer:</strong> <code>display:none</code> removes the element from the normal layout flow and allow other elements to fill in. <code>visibility:hidden</code> tag is rendered, it takes space in the normal flow but hides it.</p>

0 commit comments

Comments
 (0)