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

ASP.NET Style BorderWidth Property

ASP.NET BorderWidth Property


Style Control the Style control


Definition and Usage

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

Syntax

webcontrol

id="

id

" BorderWidth=

"length"

runat="server"

/>

property Description
length The width of the border. Must be a valid .NET length unit. Valid length units are: cm, mm, in, pt, pc, or px.

Example

The following example sets the border width of a table:

       Hello     World   

Demo Example »


Try it - Demo

Set the Button control's border width (with declaration and script)


Style Control the Style control