Easy Tutorial
❮ Aspnet Databinding Webpages Helpers ❯

ASP.NET BorderStyle Property



Definition and Usage

The BorderStyle property is used to set or return the border style of a control.

Syntax

Possible Style Values

Value Description
NotSet The border style is not set.
None Defines no border.
Dotted Defines a dotted border.
Dashed Defines a dashed border.
Solid Defines a solid border.
Double Defines a double solid border. The width of the two borders is the same as the value of border-width.
Groove Defines a 3D grooved border. The effect depends on the value of border-color.
Ridge Defines a 3D ridged border. The effect depends on the value of border-color.
Inset Defines a 3D inset border. The effect depends on the value of border-color.
Outset Defines a 3D outset border. The effect depends on the value of border-color.

Example

The following example sets the border style of a table:


Try It - Demo

Set the Border Style of a Button Control (with declaration and script)


❮ Aspnet Databinding Webpages Helpers ❯