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

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 the border-collapse
• Set the Type of Bullet Used in List
• Set the Font Variant
• Set List Bullets Position
• Use an External Style Sheet
• Set a Background Image
• Set an Element's Overlap (z-index)
• Set the Text Decoration
• position:fixed
• Set a Fixed Background Image

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-2018 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268