Home > Web Front-end > CSS Tutorial > How to use css padding-bottom attribute

How to use css padding-bottom attribute

silencement
Release: 2019-05-26 11:51:44
Original
3750 people have browsed it

How to use css padding-bottom attribute

padding-bottom attribute definition and usage

In css, the padding-bottom attribute is used to set the bottom padding (bottom padding ). If you need to set the top, right, bottom, and left margins at the same time, you can use the padding attribute. The padding attribute can define the top, right, bottom, and left margins in one statement.

padding-bottom similar attributes

padding-top attribute: top padding

padding-right attribute: right padding

padding-left attribute: left padding

padding-bottom attribute syntax format

css syntax: padding- bottom:length/%/inherit;

JavaScript syntax: object.style.paddingBottom="2cm"

Attribute description

length: Specifies the Fixed bottom padding value in specific units, such as pixels, centimeters, etc. The default value is 0px;

%: Defines a percentage of the bottom padding based on the width of the parent element. This value will not work as expected in all browsers;

inherit: Specifies Padding should be inherited from the parent element;

Example

How to use css padding-bottom attribute

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