How to get the perticluar image from large set images in one image using css
e.g. Jquery ui icons having one large image but using css class it retrives only perticlar image icon.
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.
Firstly, you create approporiate viewport div:
Then you define CSS:
Note – our
ui-iconclass applies default values for every icon. Classesalert-iconandwarrning-iconare example of customized icons. They are just moving background image showing correct piece of the icons.png image.Depending on the layout of the icons in your main, sprite image, you will have to move the image by more/less pixels or in different direction (+/-).