Quackit Logo

FREE Hosting!

With every domain name you register with ZappyHost, you get FREE hosting.

$1.99 Domain Names

With every new non-domain purchase thru ZappyHost, you get a domain name for only $1.99.

CSS border-color

Print Version

Also see the full, alphabetical list of CSS properties


The CSS border-color property allows you to set the border color of a box.

You can also use border-top-color, border-bottom-color, border-left-color, and border-right-color if you only want to specify a border color for some sides (but not all sides) of your box.

Note: You will also need to specify border-style and border-width before your border-color is displayed.

Choose your colors quickly with the HTML color picker.

Syntax: border-color: <value>
Possible Values:
  • <color>
  • transparent
  • inherit
Initial Value: Uses the 'color' property
Applies to: All elements.
Inherited: Yes
Media: Visual
Example: div.color {border-color:#ff9900}
Try it yourself!


Also see all CSS properties listed alphabetically


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
               
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!