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

unable to style custom commands with a background image

3 Answers 70 Views
Dock
This is a migrated thread and some comments may be shown as answers.
CSurieux
Top achievements
Rank 2
CSurieux asked on 09 Apr 2009, 12:16 PM
Hello,

I followed the documentation to replaced default buttons for custom commands, creating a css class like
.dockadd
{
width: 20px;
background: url(/myurl/myimg.gif);
}

then applying it with a CssClass='dockadd' to my custom command.
Something is happening as the image for command changes but it is not the one I set with my class but some kind of inverted V.
I also noticed that change the width in css has no effect on commands size.
Is there something not mentionned in documentation I need to implement ?
I must say that I am also applying the Web20 skin to the dock.

Thanks for help

CS

3 Answers, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 09 Apr 2009, 01:12 PM
Try to set !important to width and background and everything will be fine, e.g.
 <style type="text/css">  
    .dockadd  
    {  
        width20px !important;  
        backgroundurl(/myurl/myimg.gif) !important;  
    }  
    </style> 
0
CSurieux
Top achievements
Rank 2
answered on 09 Apr 2009, 01:32 PM
Thanks, it works.

So there is a bug somewhere, documentation or radDock :)

CS
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 09 Apr 2009, 01:51 PM
The documentation should be updated :)
Tags
Dock
Asked by
CSurieux
Top achievements
Rank 2
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
CSurieux
Top achievements
Rank 2
Share this question
or