/    Sign up×
Community /Pin to ProfileBookmark

help me with css sprites

I have generated css sprites uploading images zip file into this site [url]http://spritegen.website-performance[/url]. it gives me coordinates like

[code].sprite-accept { background-position: 0 0; width: 16px; height: 16px; }
.sprite-add { background-position: 0 -66px; width: 16px; height: 16px; } [/code]

, when i apply this css on page it gives me like 4 images on the row, I did play setting background-position into different width It doesn’t work, how do i exactly get the required image only ? Pls help

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@FangJul 24.2010 — Set [COLOR="Green"]background-repeat: no-repeat;[/COLOR]
×

Success!

Help @linux1880 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...