Hello There,
The padding appears because the code above is only applicable to the Blank - No Container | No Header, No Footer page template. If you want to use other templates and still want to remove the padding, you can use this code instead:
.page-template #comments {
padding-left: 40px;
padding-right: 40px;
}
Hope this helps.