I\'m trying to center a Div that will have varying width\'s (based on content of a website).
I read about a relative positioning technique here:
http://www.t
Well, it can't get any simpler than this and has full support on all browsers; doesn't even need a container:
.centered { display:table; margin:0 auto; } content
Here is a working fiddle: https://jsfiddle.net/1tnprnoz/