Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-style definition

Browser support
IEFFOpSaf

Type:

Syntax

border-style: none | dotted | dashed | solid | double | groove | ridge | inset | outset

Description

The border-style property specifies the style of the border of a table.

Values

Value Description

none

No border.

dotted

Dotted border.

dashed

Dashed border.

solid

Default solid border.

double

Double border.

groove

Groove border.

ridge

Ridge border.

inset

Inset border.

outset

Outset border.

 

Example

[Try this example yourself]
<style type="text/css">
.style1
{
  border-style: dotted;
}
.style2

  border-style: dashed;
}
</style>

<div class="style1">
  Dotted style
</div>

<br />

<div class="style2">
  Dashed style
</div>

Output

Dotted style

Dashed style
  • Comments

No comments added.