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

ASP.NET Style Width Property

ASP.NET Width Property


Style Control the Style control


Definition and Usage

The Width property is used to set or return the width of the control.

Syntax

webcontrol

id="

id

" Width=

"value"

runat="server"

/>

property Description
value The width of the control. Must be a pixel value, or a percentage value representing the width of the parent object.

Example

The following example sets the width of a Button control:

Width="150px" runat="server" />

Demo Example »


Style Control the Style control