Reputation: 5086
I have this situation http://jsfiddle.net/QrMn8/3/embedded/result/. Two divs put side by side, wrapped by a bigger div. What I want is to center the tables inside the two div. What can I do?
Upvotes: 0
Views: 380
Reputation: 2407
Your tables are inherently 100% of the width of the container. So I set width: 291px; to the tables and boom no problems. http://jsfiddle.net/QrMn8/6/embedded/result/
Upvotes: 1
Reputation:
You should use a container div. and use margin:0 auto;
for that container div
Upvotes: 2