Quackit Logo
HTML
CSS
Scripting
Database
Hosting
Design
XML
IMCreator - Free Website Builder

CSS border-top-color

Also see the full, alphabetical list of CSS properties


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

You can also use border-color to set the color for all sides of your box.

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

Choose your colors quickly with the HTML color picker.

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


Also see all CSS properties listed alphabetically


Enjoy this page?

  1. Link to this page (copy/paste into your own website or blog):
  2. Link to Quackit using one of these banner ads.

Thanks for supporting Quackit!