Oh Hey, Padding Percentage is Based on the Parent Element’s Width
I learned something about percentage-based (%) padding
today that I had totally wrong in my head! I always thought that percentage padding was based on the element itself. So if an element is 1,000 pixels wide with padding-top: 50%
, …