take into account boxSizing and previous css classes