Home  >  Article  >  Web Front-end  >  How to use css border-bottom-color property

How to use css border-bottom-color property

silencement
silencementOriginal
2019-05-29 10:16:192766browse

How to use css border-bottom-color property

css border-bottom-color definition and usage

border-bottom-color Sets the color of the bottom border of the element.

Only solid colors can be defined, and the border may appear only when the border style is a value other than none or hidden.

Note: Please always declare the border-style attribute before the border-color attribute. The element must get a border before you can change its color.

How to use css border-bottom-color property

Example

Set the color of the lower border:

p
  {
  border-style:solid;
  border-bottom-color:#ff0000;
  }

Browser support

All browsers support border -bottom-color attribute.

Note: Internet Explorer 6 (and earlier) does not support the attribute value "transparent".

Note: IE7 and earlier browsers do not support the value "inherit". IE8 requires !DOCTYPE. IE9 supports "inherit".

The above is the detailed content of How to use css border-bottom-color property. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn