Welcome to Bucaro TecHelp!

Bucaro TecHelp
HTTPS Encryption not required because no account numbers or
personal information is ever requested or accepted by this site

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

Set the Border Color

Set the border color using the border-color property. You can define the color by using the color name, hexadecimal notation, or the rgb tripplet method.

Border color set to #00ff00 - hexadecimal notation for "green"

Color defined by hexadecimal notation:

<p style="border-style:solid; border-color:#00ff00">Border color set to #00ff00 - hexadecimal notation for "green"</p>

Color defined by color name:

<p style="border-style:solid; border-color:green">Border color set using color name</p>

Color defined by using rgb tripplet:

<p style="border-style: solid; border-color: rgb(0,255,0)">Border color set using rgb tripplet</p>

The method shown below sets the color of all four borders. You can also set a different color for each border. The order of the values is top, right, bottom, left.

<p style="border-style: solid; border-color: #ff0000 #00ff00 #0000ff #000000">Set a different color for each border</p>

Set a different color for each border

The "border-style" property must be set to a style other than "none" before setting the "border-color".

More CSS Quick Reference:
• Set an Element's Margin
• Set Text Justification
• Set the Font Boldness
• Set an Element's Padding
• Set an Element's Overlap (z-index)
• Set a Background Image's Position
• Set the Text Decoration
• Set the Text Alignment
• Use word-wrap Property to allow Line Breaks in the Middle of Words
• Set the border-collapse

RSS Feed RSS Feed


Follow Stephen Bucaro Follow @Stephen Bucaro



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