<html>
<head>
<style>
div {
border: 1px solid red;
margin-left: 100px;
}
p.ex1 {
margin-left: inherit;
}
</style>
</head>
<body>
<h2>Use of the inherit value</h2>
<p>Let the left margin be inherited from the parent element:</p>
<div>
<p class="ex1">This paragraph has an inherited left margin (from the div element).</p>
</div>
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_margin-left_inherit by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 31 Mar 2021 13:04:40 GMT -->
</html>