Home > Web Front-end > Front-end Q&A > How to use css border-bottom-color property?

How to use css border-bottom-color property?

藏色散人
Release: 2019-05-29 10:51:24
Original
2729 people have browsed it

css The border-bottom-color property can only define solid colors, and the border may appear only when the border style is a value other than none or hidden. 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?

How to use the css border-bottom-color property?

Note: 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.

css border-bottom-color property usage example

<html>
<head>
<style type="text/css">
p 
{
border-style:solid;
border-bottom-color:#ff0000;
}
</style>
</head>
<body>
<p>This is some text in a paragraph.</p>
</body>
</html>
Copy after login

Effect output:

How to use css border-bottom-color property?

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template