Aight, its pretty simple:
1. Container controls width
2. Never put padding on an element which has a hardcoded width;
3. Always clear the floats.
4. That's it. 

Cheers.
Nick
http://www.nicklewis.org