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

How to use css right attribute

藏色散人
藏色散人Original
2019-05-30 10:44:043316browse

css The right attribute specifies the right edge of the element. This attribute defines the offset between the right margin boundary of the positioned element and the right boundary of its containing block.

How to use css right attribute

#How to use the css right attribute?

Function: The right attribute specifies the right edge of the element. This property defines the offset between the right margin edge of the positioned element and the right edge of its containing block.

Note:

For static elements, it is auto;

For length values, it is the corresponding absolute length;

For percentage values, the specified value; otherwise, auto.

For relatively defined elements, the calculated value of left is always equal to right.

Note: All major browsers support the right attribute. The attribute value "inherit" is not supported in any version of Internet Explorer (including IE8).

css right attribute usage example






This is a heading

How to use css right attribute

Effect output:

How to use css right attribute

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