The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › Other › Padding on element or ::before when empty? › Reply To: Padding on element or ::before when empty?
This is a common way to maintain aspect ratio of photos or other elements (using background-image). However… when done CORRECTLY, you should be using a relative value for the padding. No idea why they would use px.