How to create a rounded corners DropDownList in

DropDownList rounded corners dropdownlist web server control have many built in properties to design and style it such as ForeColor, BackColor, BorderColor, BorderStyle etc. but there is no built in property to apply rounded corners in dropdownlist control. the following c# example code demonstrate us how can we display a rounded corners dropdownlist control in web browser.

We can take advantage from css style to create a rounded corners dropdownlist control. web server render a html single selection select element in web browser for each drodownlist server control.

So we write a css section in page header section to style html select element. in this css3 declaration we include the following css border styles those are -webkit-border-radius, -moz-border-radius and border-radius. -moz- prefix for support mozilla firefox web browser. -webkit- prefix for android, chrome, ios and safari web browser support. finally web browser render each select elements on web page with rounded corners (rounded borders).

<%@ Page Language="C#" AutoEventWireup="true"%>  
<!DOCTYPE html>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
            string[] birds = { 
                                 "Muscovy Duck",
                                 "Wood Duck",
                                 "Mandarin Duck",
                                 "American Wigeon",

            DropDownList1.DataSource = birds;
<html xmlns="">      
<head id="Head1" runat="server">      
    <title> dropdownlist rounded corners</title>
    <style type="text/css">
        .select {
    <form id="form1" runat="server">      
        <h2 style="color:MidnightBlue; font-style:italic;">      
   example - dropdownlist rounded corners
        <hr width="550" align="left" color="Gainsboro" />      
        <br /><br />
More examples