HTML CSS SQL Meta tag Generator ScrollBar design Generator Encode Decode images

CSS Basics

Introduction Syntax Selectors Attribute Selectors Specificity Combinators !important Comments Colors

CSS Need to Know

Box Model Pseudo-class Pseudo-element Inline-block Math Functions Max and Min Opacity Outline Overflow Z-index Float

Most used

Align Backgrounds Borders Text Units Padding Margins Position Tables Display Fonts Lists Height and Width

CSS Reference

CSS Properties reference CSS Pseudo-Classes reference CSS Pseudo-Elements reference CSS Selector reference

CSS scroll-padding-inline-end

The scroll-padding-inline-end property in CSS is used to define the padding area for the inline end of a scroll container. This property creates space within the scroll container that prevents content to be hidden underneath the scrollbar. It can be useful when you want to ensure that the content is not obscured by the scrollbars.

The syntax for the scroll-padding-inline-end property is:

scroll-padding-inline-end: length;

Where length can be defined in pixels, percentages, or other length units.

Let's see an example to better understand how the scroll-padding-inline-end property works:

Result:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. In quis ultricies ante. Nullam eleifend mauris non eros varius, ac sollicitudin lorem luctus. Mauris at nunc ultrices, tincidunt dui a, dignissim felis.

In this example, we have a <div> element with a fixed width and height, and scrollbars enabled. The scroll-padding-inline-end: 20px; property ensures that there is a padding of 20 pixels at the end of the inline direction of the scroll container, preventing the content from being hidden behind the scrollbar.

Feel free to experiment with different values for the scroll-padding-inline-end property to see how it affects the padding area within the scroll container.

.kkk {
	color: white !important;
}