Use the border property as a shorthand method to set all three border properties in one declaration. You can set from one to three properties. The properties must be in the order: width, style, color.
Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

Set the Border Properties

Use the border property as a shorthand method to set all three border properties in one declaration. You can set from one to three properties. The properties must be in the order: width, style, color.

Below is an example of using inline style to set the border properties for a span.

<span style="border: 2px solid blue;">Border Property Shorthand</span>

Border Property Shorthand

Note that there are no commas or semicolons between the property values.

Border Width Values

Border width is the thickness of the border in pixels, or the name values: thin, medium, or thick.

Border Style Values

The border style value can be none, dotted, dashed, solid, double, outset, inset, grove, or ridge.

Border Color Values

The border color can be set using a color name, hexadecimal notation, or an rgb tripplet. An example of hexadecimal notation is #0000ff (hexadecimal for the color blue). An example of rgb tripplet is rgb(0,255,0) (rgb for the color green).

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro


Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268