What are the minimum style declaration requirements for an element that I want to horizontally center with margin:0 auto;
?
And the minimum requirements style declaration for the containing elment(s)?
I would like the solution to be element-type agnostic, i.e. to be working no matter if it's a span
, div
, a
etc.
The solution should work in any modern browser.