CSS Sprite

3 posts, 0 answers
  1. Teodorico
    Teodorico avatar
    39 posts
    Member since:
    Feb 2009

    Posted 11 Mar 2010 Link to this post

    Is it possible to have a single image (sprite) and load the individual button images using CSS?

    I have tried using .rtbIcon, but if the property ImageUrl is not set on the button, the element <img class="rtbIcon" .../> is not rendered.



  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2010 Link to this post

    Hello Teodorico,

    I hope the following documentation links would be helpful in start off.

    CSS Skin File Selectors

    CSS sprites

    Also I found the following link which explains how to use sprite image to show different images. I hope this will give you some insights on using CSS sprites.



  3. T. Tsonev
    T. Tsonev avatar
    2791 posts

    Posted 12 Mar 2010 Link to this post


    We plan to introduce sprite support for the Q2 2010 release, but for the moment using the .rtbImage element is the best solution. You have to set the ImageUrl to point to 1x1 transparent image and use CSS to set its size and background from the sprite.

    I hope this helps.

    Best wishes,
    Tsvetomir Tsonev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top