CSS padding-block-end Property

Description

The padding-block-end CSS property is used to define the padding space at the end of a block-level element, which is typically the bottom space when considering the block's writing mode (horizontal or vertical). This property allows web developers to control the spacing between the content and the boundary of the element's block direction. It is particularly useful in responsive design and layout control, enabling precise adjustments to the element's visual appearance and spacing within the layout flow.

Initial value
0
Applies to
all elements, except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
Inherited
no
Computed value
as <length>
Animatable
a length
JavaScript syntax
object.style.paddingBlockEnd

Interactive Demo

The rusty swing set creaked a lonely lullaby in the twilight, shadows lengthening like grasping fingers across the dew-kissed grass.

Syntax

padding-block-end: <padding-top> 

Values

  • <padding-top> Specifies padding-block-end in px, pt, cm, etc. Negative values are not allowed.

Example

<div>
<p class="exampleText">Example text</p>
</div>
div {
  background-color: yellow;
  width: 120px;
  height: 120px;
}

.exampleText {
  writing-mode: vertical-lr;
  padding-block-end: 20px;
  background-color: #c8c800;
}

Browser Support

The following table will show you the current browser support for the CSS padding-block-end property.

Desktop
Edge Chrome Firefox Opera Safari
8787667314.1
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
87666214.51487

Last updated by CSSPortal on: 2nd January 2024