For the icons

Posted by Kromey at 9:26pm Nov 23 '09
You must sign in to send Kromey a message
you could use CSS sprites. That way you only download a single image (actually, for the volume on 4K, you'd probably want a few images, breaking down the icons e.g. by sets), and then use some fancy CSS stylings to get only the slice of the image (the individual icon) you want to show up.

In other words, you have one image file that includes several (let's say 5 to keep things simple) icons; you choose which icon you actually want to be displayed and produce the appropriate CSS rules.

Definitely advanced-level stuff, and I've only very briefly touched on the highest-level principles of it, but when done right it again is great at reducing page loading times.

Below are the public posts you may view:

You currently have read-only access to this board. You must request an account to join the conversation.

Why Join 4thKingdom?

Note that there are no ads here. Just intelligent and friendly conversation. We keep the spam out, the trolls out, the advertisers out… 4K is just a low-key, old-fashioned site with members from around the world.
This community began in 1998, and we continue to accept new members today.

Hot Discussion Topics: