CSS padding-top

Previous Next

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

Click the property values below to see the result:

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

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