How to style a button inside asp dropdown


Tags: asp.net,css,drop-down-menu

Problem :

asp.net need to use css to style this dropdown list...

<style type="text/css">
    .cascadingDropDownList{ background-color:Red;}
    .cascadingDropDownList button{ background-color:Green; }
</style>

<asp:DropDownList ID="ddlVehicleMake" runat="server" CssClass="cascadingDropDownList" />

The background color is red for the textbox part but not green for the button. How can I get access to the button's css properties?



Solution :

This article may help you. It uses javascript and css to change the button of a select list.

http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/


    CSS Howto..

    How to remove space between bannner and content in wordpress theme?

    How to add css to modules in prestashop 1.5?

    How to make an inline-block box stick to the top? [duplicate]

    How to properly use CSS in GWTP?

    how to add background image to css3 arrow

    How to add code area css style to HTML

    How hide border on embedded swf

    How to replace default html checkbox with just html+css and no images?

    CSS Icons are working locally in the app, but are not showing on Heroku?

    How to style SVG with external CSS?

    show a div over another when resizing on hover

    how do you set css to add an asp img?

    How do I change the MVC Bootstrap layout to have more than one columns

    How to use a different CSS stylesheet if a user has JavaScript disabled in their browser?

    How to put a image below another?

    How to gray out a HTML element

    How to use the native browser outline in CSS?

    How do i position this element relative to an image?

    how to increment CSS ID using PHP programmatically

    How to make a wrapper for HTML, CSS and Javascript Pages in iOS

    HOW to combine two element that has different parent in CSS? [duplicate]

    How to keep an unordered list centered within the screen?

    How to upload image to an existing image src in angularjs, css

    How to apply css class to an html element using jquery in ASP .NET MVC?

    How to prevent css borders from floating to the top of parent div

    Class inside of Div not showing properly

    Howto include application css into mailer views in Rails 3.1

    How to process which button is selected in an HTML form?

    How to change Kendo Excel Button Content Text

    jQuery & CSS: how to convert this drawer menu from left to right?