Percent test

by Simon Hi

HTML

<h1>Percent test</h1>
<div id="a">
  <div id="b">
    Blabla
  </div>
</div>

CSS

#a {
  width: 200px;
  background: #fc9;
  border: 10px solid #f00;
}

#b {
  width: 70%;
  padding: 10%;
  background: #9cf;
  border: 10px solid #000;
}