Easy Tutorial
❮ Mvc Views Prop Webcontrol Tablerow Horizontalalign ❯

ASP.NET Width Property



Definition and Usage

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

Syntax

Property Description
value The width of the control. It 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:


❮ Mvc Views Prop Webcontrol Tablerow Horizontalalign ❯