EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

border-left property

Specifies the properties of the left border of the object.

CSS Backgrounds and Borders Module Level 3, Section 4.4

 

Syntax

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

Property values

One or more of the following space-delimited values:

border-left-width

Any of the range of width values available to the border-left-width property.

border-left-style

Any of the range of style values available to the border-left-style property.

border-left-color

Any of the range of color values available to the border-left-color property.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value(see individual properties)

Standards information

Remarks

The border-left property is a composite property that sets the width, style, and color values for the left border of an object.

All individual border properties not set by the composite border-left property are set to their default values. For example, the default value for width is "medium".

If the color value is not specified, the text color is used.

For more information about supported colors, see the Color Table.

Examples

This example uses the border-left property to change border-left-width, border-left-style, and border-left-color for a div element.

An element styled using the border-left property


<body>
   <div class="left"></div>
</body>


div {
   border: 2px solid black;
   height: 50px;
   width: 50px;
}
.left {
   border-left: 2px dashed #00BFFF;
}

See also

CSSStyleDeclaration
currentStyle
defaults
runtimeStyle
style
Reference
border
Other Resources
CSS Enhancements in Internet Explorer 6

 

 

Mostra:
© 2014 Microsoft