Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use the border-right-width attribute in CSS

Shulou Source: shulou.com Published: 2022-05-31 13:19:51 10月02日 Update

This article mainly introduces "how to use border-right-width attributes in CSS" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to use border-right-width attributes in CSS" article can help you solve the problem.

CSS border-right-width attribute

Definition and usage

The border-right-width property sets the width of the right border of the element.

Works only if the border style is not none. If the border style is none, the border width is actually reset to 0. Specifying a negative length value is not allowed.

Note: always declare the border-style property before the border-right-width attribute. An element cannot change the width of its border until it has acquired it.

Example

Set the width of the right border:

P {border-style:solid; border-right-width:15px;}

Browser support

The border-right-width property is supported by all browsers.

Note: no version of Internet Explorer (including IE8) supports the attribute value "inherit".

Possible value

This is the end of the introduction to "how to use the border-right-width attribute in CSS". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Attributes borders width knowledge support elements only right actual styles comments browsers industries browsing different practical functional content examples practicality Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia macOS Shulou Tech Info Docker OPPO Reno