Now take into account both margin and padding