This is a migrated thread and some comments may be shown as answers.

command item background image sizes

1 Answer 30 Views
Dock
This is a migrated thread and some comments may be shown as answers.
prayag ganoje
Top achievements
Rank 1
prayag ganoje asked on 04 May 2011, 05:46 PM
Hello,

I have 2 custom commands and 1 close command. Though all the images are of same size they are not aligned and their size changes automaticaly. Plz see attached image.

CSS used:
.CustomCommandRefresh
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/arrow_rotate_clockwise.png) no-repeat !important;
    }
    .CustomCommandEdit
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/cog_edit.png) no-repeat !important;  
    }
    .CustomCommandClose .rdClose
    {
        top:1px !important;
        height:16px !important;
        padding-bottom:0px !important;
        margin-bottom: 0px !important;
        background: url(/Images/cross.png) no-repeat !important;  
    }
 .rdCommands
    {
        position: absolute !important;
        right: 0px;
        top: 1px;
        height:100%;
    }


Can you please suggest me css where it can be corrected each of size 16px and aligned in one line ?

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 05 May 2011, 09:42 AM
Hello,

If you are using background images, you can not change their size with CSS or HTML property. If you want icons 16x16 pixels, you should resize your images with Adobe Photoshop or similar software. It also be good if you specify in your CSS width also and not only height.
For further assistance, please provide us a live url and an image showing how your Dock should look like.

Best wishes,
Bojo
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Dock
Asked by
prayag ganoje
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or