HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE