Forums

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

Home Forums CSS RWD: struggle with flexible padding context Reply To: RWD: struggle with flexible padding context

#171057
Ramone
Participant

@traq Yeah, I see that percentages are relative to the parent..
But in this case, it is unclear to me, what Ethan Marcotte was trying to say by that:

When setting flexible padding on an element, your context is the width of the element itself. Which makes sense, if you think about the box model: we’re describing the padding in relation to the width of the box itself.