Skip to content

Commit 229985e

Browse files
committed
added impart stylesheet conditionally
1 parent da9f511 commit 229985e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

css.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,9 @@ <h2>15. filter</h2>
432432
</div>
433433
<div id="something">
434434
<h2>16. @import</h2>
435-
<p><strong></strong></p>
436-
<p><strong></strong></p>
435+
<p><strong>Question:</strong> How can you load css resources conditionally?</p>
436+
<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>
437+
<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>
437438
</div>
438439
<div id="something">
439440
<h2>17. vertical alignment</h2>

0 commit comments

Comments
 (0)