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AgwAINwEgYdXHAgAAAAASUVORK5CYII=") 

How do I go about decoding this, it contains a number of different images  :o

Link to comment
Share on other sites

Well I have never actually used the base64 method, but from all the searching I can't find anything that says how to use it in a sprite type situation.  My best guess is that you would define the placement of the image just like you would using a normal css sprite.  You don't actually need to decode it and why would you, it's encoded for a reason. 

Link to comment
Share on other sites

  • Solution

@slj90 what your posted is the binary contents of the actual image encoded in base64.

 

To be able to use the image in your webpage, apply that code to a background: property in your stylesheet. Then manipulate the background-position co-ordinates to display the required icon from the image sprite. Example usuage

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.