Account for padding as well as margin of content div