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

How to use css border-right property

藏色散人
藏色散人Original
2019-05-29 13:27:383328browse

css border-right property is used to set all properties of the right border into one statement. You can set the following properties in order: border-right-width, border-right-style, border-right-color.

How to use css border-right property

c#ss How to use the border-right property?

Function: Set all properties of the right border into one statement.

Instructions: The following properties can be set in order: border-right-width, border-right-style, border-right-color. If you do not set one of the values, there will be no problem. For example, border-right:solid #ff0000; is also allowed.

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

css border-right property usage example

<html>
<head>
<style type="text/css">
p 
{
border-style:solid;
border-right:thick double #ff0000;
}
</style>
</head>
<body>
<p>This is some text in a paragraph.</p>
</body>
</html>

Effect output:

How to use css border-right property

The above is the detailed content of How to use css border-right 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