Home pcDTR Forum
If you like the work i do, you know what to do.
Welcome, Guest
Please Login or Register.    Lost Password?

Image groups. Important!
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Image groups. Important!
#160
Image groups. Important! 8 Months, 3 Weeks ago Karma: 2
New feature group:

I will try to explain the thinking around this new feature.

In version 3.0.0 i changed the code so all text are added to one image, and use the css sprite technique. Read CSS Sprites: What They Are, Why They’re Cool, and How To Use Them.

Instead of loading a ton of different images now we only load one.
The problem with that is if we have a menu and want to apply pcDTR to it and have the cache enabled, pcDTR would create enormous amount of images.

Thats where the value group: in the css files come in to the picture.
Now we can group similar styles together in one image.

In a web project im working on i have made an example on how to implement this. cay.otherland.se . On that page there is two different menus plus the content, all separated in diffrent groups. Check the css files.
Notice the 'group: content;' and 'group: mainnav;'. If you don't add a style to a group, if will render that text to the default image.
For this example we end up with three images. group: mainnav; , group: content; and default

Hope this help clearing out the group: value.
flowman
Admin
Posts: 110
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Banner
Copyright © 2010 pcDTR. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.