A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/properties/padding-top below:

padding-top ยท WebPlatform Docs

padding-top Summary

The padding-top CSS property of an element sets the padding space required on the top of an element. The padding area is the space between the content of the element and its border. Contrary to margin-top values, negative values of padding-top are invalid.

Overview table
Initial value
0
Applies to
all elements (except table-*-group, table-row and table-column, br)
Inherited
No
Media
visual
Computed value
the percentage as specified or the absolute length
Animatable
Yes

CSS Object Model Property
:

Percentages
[[CSS percentages::refer to width of closest block-level ancestor]]
Syntax Values
length
Specifies a positive fixed distance. See length for details.
percentage
A percentage with respect to the height of the containing block.
Examples

The following examples use the padding-top property to change the padding of the elements.

td { padding-top: 20%; }

View live example

td { padding-top: 30px; }

View live example

Syntax

padding-top: <length> | <percentage>

Related specifications
CSS basic box model
W3C Working Draft
CSS 2.1, 8 Box model
W3C Recommendation
Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4