CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>CSS Margin Collapse Property</title> <style> h2{ margin-bottom: 50px; } h3{ margin-top: 70px; } </style> </head> <body> <h1>CSS Margin Collapse Property</h2> The margins of h2 and h3 headings are collapsed. <h2>This is heading h2</h2> <h3>This is heading h3</h3> </body> </html>