CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>CSS Margin Property With Inherit Value</title> <style> div{ margin-left: 100px; border: 5px solid #29b6f6; } p.p1{ margin-left: inherit; } </style> </head> <body> <h2>CSS Margin Property With Inherit Value</h2> <div> <p class="p1"> This paragraph inherits the margin value from (div) element. </p> </div> </body> </html>