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

ASP.NET CssClass Property

ASP.NET CssClass Property


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


Definition and Usage

The CssClass property 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 »


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