News for hackers. Stuff that matters.
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...