I have produced three versions which cover most requirements:
1. A centered version 'max-width' centered
2. A left aligned version 'max-width' left
3. A right aligned version 'max-width' right
You should be able to see from the source code for each of these methods how they actually work. It is all down to left/right pads with negative margins that when combined add up to the min-width of the content container.
If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.
Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.