Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 07-07-2012, 08:57 PM
ellys's Avatar
Contributing Member
 
Join Date: 06-22-12
Posts: 93
iTrader: 0 / 0%
CSS sprites

when i check my websita at online website tools checker.
they said i must combine my images to CSS sprites in order to reduce Https request and improving pages loading.
but when i read about that i still don't understand about it.
can you explain to me with ??
is CSS sprites combine some pitcure to be 1??
like . exam1.gif and exam2.gif to be combined.gif??
thanks
__________________
PR 4Ellys Directory | PR 5
Webs Directory
 
Reply With Quote
  #2 (permalink)  
Old 07-08-2012, 08:14 PM
Super Moderator
Latest Blog:
None

 
Join Date: 11-11-11
Location: Copenhagen, Denmark
Posts: 1,731
iTrader: 0 / 0%
Well, forexample, instead of having four corner images to design corners of some kind of a box on a webpage, which would use four http requests, you could create one image with all four corners in it, and then use css to chose which part of the image to use where.

Here is a link to an example:
http://kyleschaeffer.com/tutorials/k...tml-no-script/
__________________
Need a break? EnterCave more than 40000 online games in 15 categories.
Search or browse through EnterCave Online Games Directory
 
Reply With Quote
  #3 (permalink)  
Old 07-08-2012, 10:55 PM
ellys's Avatar
Contributing Member
 
Join Date: 06-22-12
Posts: 93
iTrader: 0 / 0%
oh..then we should rewrite CSS code for CSS ?
__________________
PR 4Ellys Directory | PR 5
Webs Directory
 
Reply With Quote
  #4 (permalink)  
Old 07-08-2012, 11:26 PM
Super Moderator
Latest Blog:
None

 
Join Date: 11-11-11
Location: Copenhagen, Denmark
Posts: 1,731
iTrader: 0 / 0%
It was just an example of how to reduce http requests by using css. But, yes, if you want to use less images, by using css, and don't already do that, then you will need to make some changes to your websites css.
__________________
Need a break? EnterCave more than 40000 online games in 15 categories.
Search or browse through EnterCave Online Games Directory
 
Reply With Quote
  #5 (permalink)  
Old 07-09-2012, 12:42 AM
ellys's Avatar
Contributing Member
 
Join Date: 06-22-12
Posts: 93
iTrader: 0 / 0%
oh...
maybe i will do that when i get master CSS and HTML..hahaha.
thanks mate.
that was awsome explain.^^
__________________
PR 4Ellys Directory | PR 5
Webs Directory
 
Reply With Quote
  #6 (permalink)  
Old 07-10-2012, 02:00 AM
JohnnyS's Avatar
Contributing Member
 
Join Date: 07-05-11
Location: philippines
Posts: 312
iTrader: 0 / 0%
i find this tutorial of css tricks easy to understand regarding sprites..

http://css-tricks.com/css-sprites/

it's a bit tricky to do but it would be a big help in optimizing your site..
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is CSS Sprites? How it works? How to use it? PromoDirect SEO Forum 0 09-19-2011 07:07 AM
Sprites Issue screntropy Coding Forum 1 09-24-2009 03:56 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 01:53 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.