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
<p><strong>Question:</strong> What is css box model?</p>
184
-
<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.</p>
<p><strong>Question:</strong> How absolute, relative, fixed and static position differ?</p>
190
184
<p><strong>Answer:</strong></p>
191
185
<p><em>absolute</em>, place an element exactly where you want to place it. position is relative to parent. if no parent available then relatively place to the page itself.</p>
@@ -194,13 +188,64 @@ <h2>6. position</h2>
194
188
<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>
195
189
<p>ref: <ahref="http://www.barelyfitz.com/screencast/html-training/css/positioning/">css positioning in ten steps</a>, <ahref="http://css-tricks.com/absolute-relative-fixed-positioining-how-do-they-differ/">css position</a>, <ahref="https://developer.mozilla.org/en-US/docs/Web/CSS/position">MDN: position</a></p>
196
190
</div>
191
+
<divid="">
192
+
<h2>6. hidden vs display</h2>
193
+
<p><strong>Question:</strong> What are the differences between visibility hidden and display none?</p>
194
+
<p><strong>Answer:</strong></p>
195
+
</div>
197
196
<divid="http_request">
198
197
<h2>7. specificity </h2>
199
198
<p><strong>Question:</strong> What is specificity</p>
200
199
<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>
201
200
<p>inline style usually wins then ID then class value (or pseudo-class or attribute selector), unversal selector (*) has no specificity.</p>
202
201
<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>
203
202
</div>
203
+
204
+
<divid="mark">
205
+
<h2>5. box model</h2>
206
+
<p><strong>Question:</strong> What is css box model?</p>
207
+
<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.</p>
<p><strong>Question:</strong> What is shadow DOM?</p>
213
+
<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>
<p><strong>Question:</strong> What do u know about tranisition 3D?</p>
219
+
<p><strong>Answer:</strong> .</p>
220
+
221
+
<p>ref: <ahref="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions">css transition</a><ahref="http://www.html5rocks.com/en/tutorials/3d/css/">transition and 3D</a></p>
222
+
</div>
223
+
<divid="mtuli_lang">
224
+
<h2>13. pre processor</h2>
225
+
<p><strong>Question:</strong> What are the reasons to use preprocessor?</p>
226
+
<p><strong>Answer:</strong> .</p>
227
+
228
+
ref: <ahref="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
229
+
</div>
230
+
<divid="svg_canvas">
231
+
<h2>12. overflow</h2>
232
+
<p><strong>Question:</strong> Does overflow: hidden create a new block formatting context?</p>
233
+
<pre><code>
234
+
<style><br/> div {<br/> overflow: hidden;<br/> }<br/> p {<br/> float: left;<br/> }<br/></style><br/><div><br/> <p>I am floated</p><br/> <p>So am I</p><br/></div><br/>
235
+
</code></pre>
236
+
<p><strong>Answer:</strong> yes</p>
237
+
<p>ref: <ahref="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
238
+
</div>
239
+
<divid="div_section_article">
240
+
<h2>11. only</h2>
241
+
<p><strong>Question:</strong> What is the use of only?</p>
242
+
<pre><code>
243
+
<style><br/> @media only screen and (max-width: 1024px) {<br/> margin: 0;<br/> }<br/></style><br/>
244
+
</code></pre>
245
+
<p><strong>Answer:</strong> Stops older browsers from parsing the remainder of the selector</p>
246
+
<p><strong>Question:</strong> Does the screen keyword apply to the device's physical screen or the browser's viewport?</p>
<p><strong>Question:</strong> Does overflow: hidden create a new block formatting context?</p>
286
-
<pre><code>
287
-
<style><br/> div {<br/> overflow: hidden;<br/> }<br/> p {<br/> float: left;<br/> }<br/></style><br/><div><br/> <p>I am floated</p><br/> <p>So am I</p><br/></div><br/>
288
-
</code></pre>
289
-
<p><strong>Answer:</strong> yes</p>
290
-
<p>ref: <ahref="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
291
-
</div>
292
-
<divid="mtuli_lang">
293
-
<h2>13. pre processor</h2>
294
-
<p><strong>Question:</strong> What are the reasons to use preprocessor?</p>
295
-
<p><strong>Answer:</strong> .</p>
296
-
297
-
ref: <ahref="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
298
-
</div>
299
-
<divid="standard_quirks">
300
-
<h2>14. shadow DOM</h2>
301
-
<p><strong>Question:</strong> What is shadow DOM?</p>
302
-
<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>
<p><strong>Question:</strong> What do u know about tranisition 3D?</p>
308
-
<p><strong>Answer:</strong> .</p>
309
-
310
-
<p>ref: <ahref="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Using_CSS_transitions">css transition</a><ahref="http://www.html5rocks.com/en/tutorials/3d/css/">transition and 3D</a></p>
0 commit comments