Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Padding in percentages – for fixed element Reply To: Padding in percentages – for fixed element

#190641
Senff
Participant

I see. I guess this is a good example of “what is the DOM actually”.

As for the issue: the only way I can seem to figure it out is to use JS (detect width of parent, check percentage value, apply padding in pixels). But that feels dirty.