Edit in JSFiddle

<div class="foo">
  <div class="bar">text</div>
</div>
.foo {
  padding: 20px;
  border: 1px solid red;
}

.bar {
  border: 1px solid green;
}