01-15-2014, 12:56 PM
(This post was last modified: 01-16-2014, 12:48 AM by Jermungandr.)
That is possible ... but now you have me curious about what the code for creating these icons looks like. You should be able to accomplish what you're trying to create with nothing more than simple CSS code; no javascript should be required.
This is the method I've been using: http://www.jermungandr.net/experiments/t.../index.php
[EDIT] Oh ... there are other topics about this ... one of which you show off the format you're using. Once again my skills of observation fail me.
I'm not sure exactly what javascript you are trying to utilize that would be causing issues, but you might want to try not simply overlaying the sprite image with an <img> tag, but rather make it the background of the iconbody <div> tag with no-repeats and center alignment. That should make sprite images of the wrong size less of an issue ... even if the image size is greater than the limit, as it would take care of cropping for you.
This is the method I've been using: http://www.jermungandr.net/experiments/t.../index.php
[EDIT] Oh ... there are other topics about this ... one of which you show off the format you're using. Once again my skills of observation fail me.
I'm not sure exactly what javascript you are trying to utilize that would be causing issues, but you might want to try not simply overlaying the sprite image with an <img> tag, but rather make it the background of the iconbody <div> tag with no-repeats and center alignment. That should make sprite images of the wrong size less of an issue ... even if the image size is greater than the limit, as it would take care of cropping for you.