Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p.ex1 { padding: 2cm; } p.ex2 { padding: 0.5cm 3cm; } </style> </head> <body> <p class="ex1">This text has equal padding on each side. The padding on each side is 2cm.</p> <p class="ex2">This text has a top and bottom padding of 0.5cm and a left and right padding of 3cm.</p> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss_padding by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:53:00 GMT --> </html>
Result:
Try it Yourself - © w3schools.com