Learn CSS daily

Generate Your Own Playground

Type any CSS property and get a live, editable playground instantly.

padding-inline-end
.container {
  background-color: #f0f0f0;
  padding: 20px;
  border: 1px solid #ccc;
}

.title {
  font-size: 24px;
  padding-inline-end: 30px;
  color: #333;
}

description {
  font-size: 16px;
  color: #666;
} 
.description {
  font-size: 16px;
  color: #666;
}

The 'padding-inline-end' CSS property sets the padding space on the inline end side of an element, which is determined by the text direction (left for left-to-right languages and right for right-to-left languages). This property is useful for creating responsive layouts that adapt to different writing modes without needing to change the actual padding values. It allows for better control of spacing in modern web design.

padding-inline
.container { background-color: #f0f0f0; padding: 20px; border: 2px solid #ccc; }
.title { padding-inline: 30px; color: #333; }
.description { padding-inline: 30px; color: #666; }

The 'padding-inline' CSS property is a shorthand for setting the padding on both the left and right sides of an element in one declaration. It allows for more concise code and is particularly useful for managing horizontal spacing in a responsive design. This property respects the text direction (LTR or RTL) of the document, making it a versatile choice for internationalization.

padding-bottom
.container { background-color: #f0f0f0; padding: 20px; border: 2px solid #ccc; } .title { color: #333; } .description { padding-bottom: 30px; color: #666; } .extra { color: #999; }

The 'padding-bottom' property in CSS is used to create space between the content of an element and its bottom border. This space can enhance the visual layout by providing breathing room and improving readability. It is particularly useful in scenarios where text needs to be separated from other elements or borders below it.

padding-block-start
.container { background-color: lightblue; padding: 20px; } .title { padding-block-start: 30px; font-size: 24px; } .description { font-size: 16px; }

The 'padding-block-start' CSS property sets the padding space at the start of a block container, which is the top side in a vertical writing mode. This property is particularly useful for creating consistent spacing in layouts, especially in responsive designs where the writing direction may change.

padding-block-end
.container {
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    width: 300px;
    margin: 20px auto;
    text-align: center;
}

.title {
    margin: 0;
    padding-block-end: 20px;
    color: #333;
}

.description {
    margin: 0;
    padding: 10px;
    color: #666;
}

The 'padding-block-end' CSS property sets the padding area on the end side of a block container. This property is particularly useful for controlling the layout in a way that respects the writing mode of the content, allowing for more responsive designs. By using this property, you can ensure that the spacing at the end of a block element is consistent, regardless of the text direction.