Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS padding-right property</title> <style> h1 { padding-right: 2em; background: #ffb6c1; } p { padding-right: 50px; background: #f0e68c; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>