• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How CSS works for Images

 
Chennarao Marvatu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I would like to know how CSS works for Images.
Assume, you have 100 same images that are getting repeated in a page ( eg : spacer) and if you declare this in CSS, will CSS makes 100 connections to server or only once when CSS is loaded ?

Thanks,
Chennarao
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about an <img> tag? CSS has nothing to do with the src attribute of that.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are talking about url references such as that you might use for the background-image rule, the bowser should cache these just as it would any other resources.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic