Quite a \"simple\" problem here and not sure why it\'s being so complicated.
The key is the margin: 0 auto; on the inner div. A proof-of-concept example:
Test