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

ASP.NET Style CssClass Property

ASP.NET CssClass Property


Style Control the Style control


Definition and Usage

The CssClass is used to set or return the CSS style class of the control.

Syntax

webcontrol

id="

id

" CssClass=

"style"

runat="server"

/>

property Description
style A string value that specifies the CSS class used on the control.

Example

The following example sets a CSS style on a button:

Text="Submit" runat="server"/>

Demo Example »


Style Control the Style control