Skip to content

Commit e06db5a

Browse files
committed
added question for media queries
1 parent 91b835a commit e06db5a

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

css.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -320,23 +320,25 @@ <h2>11. overflow</h2>
320320
<br>
321321
<p>ref: <a href="http://css-tricks.com/the-css-overflow-property/">overflow</a> (read the link and add something from it)</p>
322322
</div>
323+
324+
<div id="div_section_article">
325+
<h2>13. media queries</h2>
326+
<p><strong>Question:</strong> How could you apply css rules specific to a media?</p>
327+
<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>
328+
<p><code>@media (max-width:700px) and (orientation: landscape){...}</code> will apply rules for media smaller than 700px and in landscape orientation.</p>
329+
<p><strong>Question:</strong> What is the use of only?</p>
330+
<p><strong>Answer:</strong> to hide style sheets from older user agents.</p>
331+
<p><strong>Question:</strong> Does the screen keyword apply to the device's physical screen or the browser's viewport?</p>
332+
<p><strong>Answer:</strong> Browser's Viewport</p>
333+
<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>
334+
</div>
323335
<div id="mtuli_lang">
324-
<h2>12. pre processor</h2>
336+
<h2>13. pre processor</h2>
325337
<p><strong>Question:</strong> Have you used any preprocessor? What are the reasons to use preprocessor?</p>
326338
<p><strong>Answer:</strong> .</p>
327339

328340
ref: <a href="http://www.frontendjournal.com/most-common-technical-interview-question-for-frontend-developers/">most common interview questions</a>
329341
</div>
330-
<div id="div_section_article">
331-
<h2>13. only screen</h2>
332-
<p><strong>Question:</strong> What is the use of only?</p>
333-
<pre><code>
334-
&lt;style&gt;<br/> @media only screen and (max-width: 1024px) {<br/> margin: 0;<br/> }<br/>&lt;/style&gt;<br/>
335-
</code></pre>
336-
<p><strong>Answer:</strong> Stops older browsers from parsing the remainder of the selector</p>
337-
<p><strong>Question:</strong> Does the screen keyword apply to the device's physical screen or the browser's viewport?</p>
338-
<p><strong>Answer:</strong> Browser's Viewport</p>
339-
</div>
340342
<div id="download_order">
341343
<h2>14. applied rule</h2>
342344
<p><strong>Question:</strong> What is the color of text sausage for he following rule?</p>

0 commit comments

Comments
 (0)