This commit is contained in:
atomiks
2018-02-28 05:36:01 +10:00
parent 468a67c12c
commit 10b866ba17
4 changed files with 7 additions and 7 deletions

View File

@ -124,8 +124,8 @@
}
</style>
<h4 data-type="Explanation">Explanation</h4>
<p><code>padding-top</code> and <code>padding-bottom</code> can be used as an alternative to <code>height</code> such that the percentage value causes an element's height to become a percentage of its width, i.e. <code>50%</code> means the height
will be 50% of the element's width. This allows its proportion to remain constant.</p>
<p><code>padding-top</code> and <code>padding-bottom</code> can be used as an alternative to <code>height</code> such that the percentage value causes an element's height to become a percentage of its parent's width, i.e. <code>50%</code> means
the height will be 50% of the parent element's width, which means it acts the same as <code>width</code>. This allows its proportion to remain constant.</p>
<h4 data-type="Browser support">Browser support</h4>
<div>
<div class="snippet__browser-support">