Expression Studio 4.0

Sets the width of the border of the object.


{ border-top-width: sWidth }

Possible values


Variant that specifies one of the following values:




Greater than the default width.


Less than the default width.


Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).

For more information about the supported length units, see Length units reference.

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


The following example uses the border-top-width property to specify the border width. This example uses a call to an embedded (global) style sheet to change the width of the bottom border to 1 centimeter when a mouse click occurs:

    td { border-top-width: 3mm; }
    .changeborder 1 { border-top-width: 1cm; }
<table border >
    <td onclick="this.className='changeborder 1'" ondblclick="this.className=''">
        <img src="sphere.jpg">

Standards information

This property is defined in Cascading Style Sheets (CSS), Level 1 (CSS1) Ee371200.xtlink_newWindow(en-us,Expression.40).png.

Applies to

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, frame, hn, hr, 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

See also

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.

Community Additions