Home › Forums › CSS › RWD: struggle with flexible padding context › Reply To: RWD: struggle with flexible padding context
May 25, 2014 at 12:16 pm
#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.