Home
Add Style Properties to ASP.Net Controls to Improve Appearance
The default formatting for ASP.Net controls is very dated. The default formatting is basically the same as the formatting in Visual Basic 1.0 which was released in 1991.
The examples below show how to add different styles to improve the the look of asp.net controls. The styles can be applied with the style tag or through css. In order to add style to an ASP.Net control, you must manually add the style tag in the HTML Source.
Display a DropDownList with Rounded Corners
The style properties below add rounded corners to the DropDownList control.
style="margin:5px;padding:10px;background-color:blue;color:white;border-radius:7px;height:35px;border-style:none;"
Display a DropDownList with Half-Circle Corners
These style properties add half-circle corners to the DropDownList control.
style="margin:5px;background-color:blue;color:white;border-radius:20px;height:35px;border-style:none;"
Display a Circle DropDownList
The style properties below create a DropDownList in the form of a circle using the radius property. In order to form a circle, the width and height properties must be equal.
style="margin:5px;background-color:blue;color:white;border-radius:50%;height:50px;width:50px;border-style:none;"
Display a DropDownList with no Background
These style properties display a DropDownList with no background.
style="margin:5px;background-color:white;color:blue;border-style:none;"