Form element appears to be distorting parent div margin/padding

I created a test page to demonstrate what is happening:
https://www.webcemeteries.com/holysepulchre2.org/test.htm

Below the "submit order" and "edit account information" buttons is a white space which I don't want to be there. The space is in-between the elements div#content and div#bottomswirls. It appears to be related to the form element on this page. If I take away the form element, the space goes away.

However, I don't understand why it is there, or what I can do to get rid of it. My margin and padding are set to zero already.

Any advice?
Thank you!
Brad BansnerWeb DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Tom BeckCommented:
main.css line 10, paragraph margin under the buttons, 1em on the bottom.

p, ul, ol {
    margin: 0 0 1em;
}
Brad BansnerWeb DeveloperAuthor Commented:
OK. I sort of understand. But why should the margin at the bottom of a paragraph tag cause the background color (which is on the parent DIV element) to have a margin?
Tom BeckCommented:
You have a min-height set for the parent div. The content exceeds that minimum so the last paragraph is being forced to the bottom. In the css box model, margin is the outermost box and it is applied outside of the container's borders as well as outside the borders of its parent container. If you want the space between paragraphs to be applied inside the parent container, use padding.

The css box model:

http://www.w3schools.com/css/css_boxmodel.asp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brad BansnerWeb DeveloperAuthor Commented:
Changing margin to padding does seem to fix it. Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.