4 out of 6 rated this helpful - Rate this topic

border-bottom-style property

Specifies the style of the bottom border of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.2

Syntax

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

Property values

none

Initial value. Border is not drawn, regardless of any border-width.

hidden

Internet Explorer 8 and later. Same as none, except in terms of conflict resolution of collapsed borders. Any element with a hidden border suppresses all shared borders at that location. Borders with a style of none have the lowest priority.

dotted

Border is a dotted line.

dashed

Border is a dashed line.

solid

Border is a solid line.

double

Border is a double line drawn on top of the background of the object. The sum of the two single lines and the space between equals the border-width value. The border width must be at least 3 pixels wide to draw a double border.

groove

3-D groove is drawn in colors based on the value.

ridge

3-D ridge is drawn in colors based on the value.

inset

3-D inset is drawn in colors based on the value.

outset

3-D outset is drawn in colors based on the value.

window-inset

Same as inset with a thin outside border.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

An border-width greater than zero must be set for the border-bottom-style property to render.

Examples

The following examples use the border-bottom-style CSS property and the borderBottomStyle scripting property to specify the border style.

This example uses a call to an embedded style sheet to change the style of the bottom border to groove.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/border-bottom-style.htm


<head>
<style>
td {
  border-bottom-style: solid;
  border-width: 0.3cm;
}
.change {
  border-bottom-style: groove;
}
</style>
</head>

<body>

<table>
  <tr>
    <td onmouseout="this.className=''" onmouseover="this.className='change'">
    <img alt="sphere" src="sphere.jpg"> </td>
  </tr>
</table>


This example uses inline scripting to change the style of the bottom border to groove.

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/borderBottomStyle.htm


<td onmouseover="this.style.borderWidth='0.5cm';
                 this.style.borderBottomStyle='groove'">

See also

CSSStyleDeclaration
currentStyle
defaults
runtimeStyle
style
border

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.