Tips for beginners: How to align text & content with html & css

This specific content was written 9 years ago. Please keep this in mind as it may be outdated and not adhering to best-practices.

Html-cssQuick Example: How to align text & content in CSS

In this post we show how to vertically align your text even if the text is changing its font size dynmically and also how to

align horizontally content (aka divs – otherwise you can do it with span tags) using the old fashioned floats. At the end you can findĀ 

the code in jsFiddle for further practice.

More