Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border definition

Browser support
IEFFOpSaf

Type:

Syntax

border: <border-width> || <border-style> || <color>

Description

The border property specifies the properties of the border of a table.

Values

Values Definition
border-width border-style border-color Sets all three properties for the border.

See also

border-style, border-color, border-width

Example

[Try this example yourself]
<style type="text/css">
.border1

  border: thick dotted #FFFF00
}
.border2

  border: double #FF0000
}
</style>
<div class="border1">
  Border 1
</div>
<div class="border2">
  Border 2
</div>

Output

Border 1
Border 2
  • Comments

No comments added.