css - Unspecified padding with border-box sizing -
i noticed odd css earlier. can see in image below, have td
element padding
set 0. however, if left, can see green-tinted areas there's 10px of padding on top , bottom, thought chrome says there no padding. didn't write css, discovered setting box-sizing
property border-box
seems causing this. can't figure out how rid of it.
so phantom padding coming from, , how can rid of while still using border-box
sizing?
edit: here fiddle should demonstrate behavior (at least in latest version of chrome). can't figure out how rid of padding unless table * { box-sizing: content-box; }
, don't want do.
Comments
Post a Comment