| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2007
Posts: 30
|
Youtube question
Hey guys, http://s.ytimg.com/yt/img/master-vfl33777.gif When looked at the background image of youtube.com, I saw this^. Des anyone have any idea of how youtube utilizes this image in order to create their site? Thanks |
|
|
|
|
|
#2 (permalink) |
|
shiro
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,537
|
They are most likely using that as their background image for various things in the site. They put everything into one image, and then just position the background image so that it shows only the part of the image that they want people to see. By putting it all into one image, only one image has to be downloaded saving the browser from having to make multiple requests to the server for background images. |
|
|
|
#5 (permalink) |
|
Senior Member
|
The term is css sprites. I would like to try that on a couple of my sites.... but don't have the patients. It is also amazing to thing about how many request to the server are being avoided on a site like youtube which has millions upon millions of page views a day. |
|
|
|
#15 (permalink) | |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,126
|
Quote:
Or, position:absolute; top:0;/bottom:0;? Huge difference. |
|
|
|
|
#16 (permalink) |
|
For all your goober needs
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,528
|
or background-position: top/bottom; perfectly valid dude. Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison
prem ghinde |
|
![]() |