This topic has not yet been rated - Rate this topic

border-left

Sets the properties of the left border of the object.

{ border-left: sBorder }

sBorder

String that specifies or receives one or more of the following space-delimited values:

color

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

style

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

width

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

This property has a default value of medium none. It is not inherited.

The border-left property is a composite property that set 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 no color is specified, the text color is used.

The following example uses the border-left property to specify the composite properties. This example uses a call to an embedded (global) style sheet to change the attributes of the right border when an onmouseover event occurs:

<head>
<style>
    td { border-left: 4px red groove; }
    .change { border-left: 2px yellow solid; }
</style>

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

A, ABBR, ACRONYM, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, CUSTOM, DD, DEFAULTS, DEL, DFN, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAMESET, FRAME, HN, I, IFRAME, IMG, INPUT TYPE=BUTTON, INPUT TYPE=CHECKBOX, INPUT TYPE=FILE, INPUT TYPE=IMAGE, INPUT TYPE=PASSWORD, INPUT TYPE=RADIO, INPUT TYPE=RESET, INPUT TYPE=SUBMIT, INPUT TYPE=TEXT, INS, LI, OBJECT, OL, P, Q, S, SPAN, SUB, TABLE, TD, TH, TT, U, UL, VAR, XMP

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.