CSS padding-right

Previous Next

Demo of the different values of the padding-right property.

Click the property values below to see the result:

padding-right: 0;
padding-right: 25px;
padding-right: 50px;
padding-right: 20%;
See this blue div element with different padding-right values.
See this blue div element with different padding-right values.
See this blue div element with different padding-right values.
See this blue div element with different padding-right values.

Play more with the code in our Tryit yourself editor: Try it Yourself ❯