News for hackers. Stuff that matters.
Re:CSS Absolute Centering by ianstormtaylor on Saturday August 10, 2013 @04:48PM (#6192627)
It's not about inheritance, it's about specificity. If you have a generic module that specifies

  padding: 5px;
And you actually the bottom of your element to have more padding, you need to be able to do adjust the bottom padding independently

  padding-bottom: 10px;
Otherwise, you'd be required to tightly couple your our padding requirements with the defaults of the original module

  padding: 5px 5px 10px 5px;
Re:CSS Absolute Centering by lmm on Saturday August 10, 2013 @05:28PM (#6192738)
CSS requires you to do that in plenty of other places (e.g. if you make your border 1px wider you have to make the element it's on 2px narrower.)
Re:CSS Absolute Centering by callmevlad on Saturday August 10, 2013 @06:16PM (#6192879)
If you set box-sizing: border-box [1], you don't need to worry about the latter.
Re:CSS Absolute Centering by emn13 on Sunday August 11, 2013 @04:38AM (#6194351)
Even without border box you can achieve that quite easily (since the conceptual border-box 100% is the default for blocks); you simply need more wrapper elements.
Re:CSS Absolute Centering by lmm on Sunday August 11, 2013 @04:12AM (#6194291)
If only that worked on all the browsers I was required to support...