Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Style Property

ASP.NET Style Property


Web Control Standard Attributes Reference Manual Web control standard properties reference manual


Definition and Usage

The Style property is used to set or return the inline CSS style of the control.

Syntax

webcontrol

id="

id

" Style=

"style"

runat="server"

/>

 

property Description
style A string that specifies the inline style sheet's CSS style.

Example

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

Style="font: 12pt Verdana;font-weight:700;color:orange;" />

Demo Example »


Web Control Standard Attributes Reference Manual Web control standard properties reference manual