ASP.NET Style Property


Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

Definition and Usage

The Style property is used to set or return an inline CSS style to a control.

Syntax

<asp:webcontrol id="id" Style="style" runat="server" />
 
Attribute Description
style A String specifying CSS style for the inline stylesheet


Example

The following example sets the CSS style of a button control:

<form runat="server">
<asp:Button id="Button" Text="Submit" runat="server"
Style="font: 12pt Verdana;font-weight:700;color:orange;" />
</form>

Show example »

Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

Color Picker

colorpicker