Skip to content

Commit f2508b9

Browse files
committed
added text for sprites
1 parent 5b11a7f commit f2508b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,10 @@ <h2>17. vertical Center</h2>
473473
</div>
474474
<div id="something">
475475
<h2>18. sprite</h2>
476-
<p><strong></strong></p>
477-
<p><strong></strong></p>
476+
<p><strong>Question:</strong> Why would you use sprites?</p>
477+
<p><strong>Answer:</strong> When you have multiple images/icons, browser makes seperate call to the server for each one of them. sprite is a technique to combine all of them (usually similar one in terms of type of image. For example, you will put jpg in one sprite) in one image. you can later optimize the image. To display the icon you set height, width and background position.</p>
478+
<p>popular libraries like bootstrap use this technques. If you repeat the image. want to scale you have to be careful with sprite.</p>
479+
<p>ref: <a href="http://coding.smashingmagazine.com/2009/04/27/the-mystery-of-css-sprites-techniques-tools-and-tutorials/">css sprites</a>, <a href="http://css.spritegen.com/">generate sprites</a></p>
478480
</div>
479481
<div id="mtuli_lang">
480482
<h2>19. pre processor</h2>

0 commit comments

Comments
 (0)