<div> <p class="p1">Hello</p> <p class="p2">Wrold</p> </div>
* { margin: 0; } p { width: 100px; } .p1 { background-color: blue; margin-bottom: 20px; } .p2 { background-color: yellow; margin-top: 10px; }