I read somewhere that css sprites are better than using simple images. How is that ? also I am new to Html so can anyone tell me how css works and give me a simple example for css sprites?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is the complete code. Copy and paste in a notepad and save it as
abc.html. Save the two images below in the same folder as:image.giffor big one andtrans.giffor small one.In simple words, CSS sprites use only one image instead of many.
So instead of many image requests from server only a single request is sent.