Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi Dudes,

I am using AjaxToolkit combobox in my page... I am trying to change the width of combo-button . But I couldnot. Because it has inline style by default..

Whatever i tried to add style using the following code

.ComboClass .ajax__combobox_buttoncontainer button
{
border-radius: 0px;
box-shadow: 0px;
width :12px; height:12px;
}

But border-radius and Box-shadow styles are applying but Width& height is not applying ..

Because ComboBox Button got default inline styles.. I cant remove that line styles too..

Please post me some suggestions....
Posted
Comments
SRS(The Coder) 26-Jun-14 2:54am    
You can use '!important' for the style you want to override which is by default being assigned to the element you want.

Ex : - { background-color: red !important; }

Hope this will be of help to you.
Sarathkumar Nallathamby 26-Jun-14 4:59am    
Its working .. Thanks Yaar...

CSS
.WindowsStyle .ajax__combobox_buttoncontainer button
        {
            background-image: ;
            background-position: center;
            background-repeat: no-repeat;
            border-color: ButtonFace;
            height: 15px;
            width: 15px;
        }

Try this
 
Share this answer
 
Comments
Sarathkumar Nallathamby 26-Jun-14 5:16am    
No buddy.. It doesnot work.. But I can change width by using !important property of the css... Simple thing but strucks a day for me....
[no name] 26-Jun-14 7:13am    
K buddy . Thanks for the info
Hi,

Finally it works I added !important css property which i need to override my style

CSS
.ComboClass .ajax__combobox_buttoncontainer button
       {
           border-radius: 0px;
           box-shadow: 0px;
           width: 12px !important;
           height: 15px !important;
       }
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900