GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Quick Tutorial: CSS Sprites (https://gfy.com/showthread.php?t=899985)

Voodoo 04-15-2009 04:10 PM

Quick Tutorial: CSS Sprites
 
Quick Tutorial: CSS Sprites

http://www.g33ky.com/sprite/

Hello All,

I just threw this page together to test out a method for displaying CSS Sprites. Feel free to check it out. I didn't spend much time doing super-cool icons or code formatting or anything... deal with it (http://www.gofuckyourself.com/images/icons/tongue2.gif), but for those of you who haven't been exposed to sprites before, it may give you some good ideas for your projects.

The concept is, use 1 image for all of your buttons or icons etc... and use CSS positioning to display the various parts of the image. This causes fewer server requests, faster page loading and less code in general. It's easiest if you set these up on a grid in your Photoshop file.

Hope it gives you some ideas.

-V

munki 04-15-2009 04:14 PM

Nice tut dawg...


When can i expect the css fairies run through?

Voodoo 04-15-2009 04:15 PM

Quote:

Originally Posted by munki (Post 15748825)
Nice tut dawg...


When can i expect the css fairies run through?

I only have CSS Rootbeers. :(

Ozarkz 04-15-2009 04:15 PM

Interesting thanks for posting.

PSD CSS XHTML 04-15-2009 04:17 PM

Mehhh. I hate fucking with sprites. Nice little sample though.

RyuLion 04-15-2009 04:18 PM

Official lame thread of the day..

Voodoo 04-15-2009 04:26 PM

Quote:

Originally Posted by RyuLion (Post 15748841)
Official lame thread of the day..

It's called a "contribution":
http://dictionary.reference.com/browse/contribution

con⋅tri⋅bu⋅tion   /ˌkɒntrəˈbyuʃən/ Show Spelled Pronunciation [kon-truh-byoo-shuhn] Show IPA
–noun 1. the act of contributing.
2. something contributed.
3. an article, story, drawing, etc., furnished to a magazine or other publication.

You should try it sometime.

Mr Pheer 04-15-2009 04:29 PM

very cool idea

Voodoo 04-15-2009 04:34 PM

Here's some more info about them and how Yahoo & AOL use them:
http://www.websiteoptimization.com/s...k/css-sprites/

StuartD 04-15-2009 04:42 PM

Yup, it's a powerful thing... most "5 star ratings" scripts are done this way, as well as many other scripts involving icons of some sort.

Good thread :thumbsup

Why 04-15-2009 05:10 PM

damn voodoo, never used sprites before, thanks for the infos! interesting idea.

mikeyddddd 04-15-2009 05:28 PM


sortie 04-15-2009 05:44 PM

Quote:

Originally Posted by Voodoo (Post 15748806)
Quick Tutorial: CSS Sprites

http://www.g33ky.com/sprite/

Hello All,

I just threw this page together to test out a method for displaying CSS Sprites. Feel free to check it out. I didn't spend much time doing super-cool icons or code formatting or anything... deal with it (http://www.gofuckyourself.com/images/icons/tongue2.gif), but for those of you who haven't been exposed to sprites before, it may give you some good ideas for your projects.

The concept is, use 1 image for all of your buttons or icons etc... and use CSS positioning to display the various parts of the image. This causes fewer server requests, faster page loading and less code in general. It's easiest if you set these up on a grid in your Photoshop file.

Hope it gives you some ideas.

-V

Good idea.

I code in flash so I would do that in flash.

Elli 04-15-2009 05:56 PM

Hot damn, that's the best explanation I've seen for sprites yet! Thanks for the quick demo!

woj 04-15-2009 05:59 PM

nicely done :thumbsup

Sands 04-15-2009 06:00 PM

I lurve sprites <3

st0ned 04-15-2009 06:01 PM

Very cool, this is new to me. Thanks for sharing. :thumbsup


All times are GMT -7. The time now is 05:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123