Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> p.padding { padding-left: 2cm; } p.padding2 { padding-left: 50%; } </style> </head> <body> <p>This is a text with no left padding.</p> <p class="padding">This text has a left padding of 2 cm.</p> <p class="padding2">This text has a left padding of 50%.</p> </body> <!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_padding-left by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:23:25 GMT --> </html>
Result:
Try it Yourself - © w3schools.com