Combine images using CSS sprites

Discussion of non-phpBB related topics with other phpBB.com users.
Forum rules
General Discussion is a bonus forum for discussion of non-phpBB related topics with other phpBB.com users. All site rules apply.
Post Reply
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Combine images using CSS sprites

Post by wbxpress »

GTMetrix recommends that the following images should be combined into as few images as possible using CSS sprites:-

/styles/prosilver/imageset/forum_read.gif
/styles/prosilver/imageset/icon_topic_latest.gif
/styles/prosilver/theme/images/bg_button.gif
/styles/prosilver/theme/images/bg_header.gif
/styles/prosilver/theme/images/bg_list.gif
/styles/prosilver/theme/images/corners_left.png
/styles/prosilver/theme/images/corners_right.png
/styles/prosilver/theme/images/gradient.gif
/styles/prosilver/theme/images/icon_faq.gif
/styles/prosilver/theme/images/icon_fontsize.gif
/styles/prosilver/theme/images/icon_home.gif
/styles/prosilver/theme/images/icon_logout.gif
/styles/prosilver/theme/images/icon_register.gif
/styles/prosilver/theme/images/icon_rules.png

I tried using spriteme.org but no luck. Can anybody please help me in this regard? :roll:
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: Combine images using CSS sprites

Post by Arty »

Unless you are going to change almost all CSS for those sprites (including how it is applied to elements) combining images is pointless.

Items where those images are used as backgrounds do not have fixed width/height, so using sprite as background will result in other elements of sprite appearing in wrong places.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Lumpy Burgertushie
Registered User
Posts: 68111
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Combine images using CSS sprites

Post by Lumpy Burgertushie »

what or who is gtmetrix and what do they have to do with phpbb?


robert
wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: Combine images using CSS sprites

Post by wbxpress »

Arty wrote:Items where those images are used as backgrounds do not have fixed width/height, so using sprite as background will result in other elements of sprite appearing in wrong places.
thanks for the clarification. i am dropping the idea. :oops:
Post Reply

Return to “General Discussion”