Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p.p1 { margin-left: 6em; } p.p2 { margin-left: 40px; } p.p3 { margin-left: 10%; } </style> </head> <body> <h2>Margin-left property example</h2> <p>No specified margin.</p> <p class="p1"> Left margin is set to 6em.</p> <p class="p2">Left margin is set to 40px.</p> <p class="p3">Left margin is set to 10%.</p> <p>No specified margin</p> </body> </html>