A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
How CSS works for Images
Joined: Aug 09, 2004
Sep 04, 2006 23:10:00
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 ?
Joined: Nov 08, 2001
Sep 05, 2006 05:54:00
Are you talking about an <img> tag? CSS has nothing to do with the src attribute of that.
Author and ninkuma
Joined: Jan 10, 2002
Sep 05, 2006 10:23:00
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.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: How CSS works for Images
caching of images, css & js files
Html code related problem
Rendering images with CSS in struts
How to turn BB code on?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014