Can anyone help me fixing a CSS sprite issue. I’ve done a sprite but it shows repeated icons in vertical shape. But I want only single horizontal icons.
Thanks for suggestion. I’ve dont it to 22px but the main problem is still there because i need a horizantal sprite. Your suggestion remove duplicate icons but it still vertical. How to convert it… Note: link was updated
Your sprite image is already horizontally arranged.
Your code is rendering them vertically on the page.
I would suggest that you delete the width from #socialicon. It is being floated so it will naturally be no wider than its contents.
You can then either float the list items containing the boxes for the sprites,
or assign display:inline-block to the list items.
I frequently use outlines to see how boxes are arranged on a page.
The red dotted outline is assigned to #socialicon
The magenta outline is assigned to i.