sprite images

  • jkeis


    BTW, I saw you posted an article on randomness… I’m currently reading The Drunkard’s Walk – How Randomness Rules our Lives by Leonard Mlodinow – highly suggested read 🙂


    Syahir Hakim


    Yep, I read that book already, few months back 🙂



    It’s great.



    I have a question… take the following for instance:

    background:url(images/sprite_h.png) left -66px repeat-x;

    It starts at 66 but how do I know at what pixel it stops? The gradient tool seems to be applying my new color to the whole image :/


    Syahir Hakim


    CSS property only allow offset value, and not where the background should stop. For that, I simply set the width or height of the element that uses that particular image in the sprite. For elements with expandable width or height, I carefully choose the placement of the image to be used as background in the sprite, so that other images in the sprite won’t show up.

    As for the gradient tool, you can select the area to apply it first by using the selection tool.



    Okay thanks.

    The silver bar under the black bar for the menu doesn’t seem to be used for anything, or am I mistaken? I ask because I had previously changed the color of it to red and with current purple scheme I don’t see a clash of color.



    Another question on these sprite images, with respect to the main one in particular… If you go to my site at newenlightenmentnow.org you will see I replaced the RSS icon. This is an icon that is located in an icons folder and not on the sprite image. I want to repeat this for facebook, mail subscription, and twitter (I have icons for these in the folder). Essentially I want to replicate what you see in my sidebar. The widget plugin there is called “Subscription Options” – http://digitalcortex.net/plugins/subscription-options.

    So my question is, for the RSS code, and to be frank – how did you manage to get it to work? I can’t find the code anywhere. I’m assuming it would not be in style.css but I couldn’t find any call functions to other psp files.

    As you can see now I am lost 🙂

    Thanks again.




    One other thing and hopefully this will be it…

    I have categories setup on the menu but subcategories don’t dropdown. Is there something I might have missed? If not, is this something a plugin can fix?



    Syahir Hakim


    Yep, and that black bar for the menu is not used either. Both of them are replaced with the image in sprite_h.png file. I’ve removed them from the new version (1.0.8).

    As for the RSS code, it’s in the header.php file, a few lines after the <body> tag:

    <p id="rss"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php esc_attr_e('Subscribe to RSS feed', 'graphene'); ?>"><span><?php _e('Subscribe to RSS feed', 'graphene'); ?></span></a></p>


    Syahir Hakim


    That is weird. I just tested your website just now (before you posted your last post) and the dropdown menu worked! Are you sure you’ve set up your Custom Menu properly?

Viewing 10 posts - 11 through 20 (of 40 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!