Using CSS, it\'s easy to horizontally center text in a container using text-align:center;
, but if any single word of that text is larger than the width of the c
That damned horizontal scrollbar!
http://jsfiddle.net/sqKU6/
aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa aaaaa
CSS:
.inner {
text-align: center;
position: relative;
left: +450%;
}
.inner:before {
content: '';
display: inline-block;
margin-right: -900%;
}