The question is basically already stated in the title, but to clarify: I'm trying to horizontally center an anchor <a>
in a main content area.
I would like to do this without:
div
for example)text-align:center
for example)<a>
as a full width block (I would like to keep the clickable area a big as the link itself)So basically I would like to do this just by styling the anchor itself in css, in a dynamic (shrinkwrap) way. I've been trying, but haven't found a way yet, does anyone know how to do this?
Try this - DEMO
a {
display: table;
margin: auto;
}