Amazon Centering things with CSS can be so DIFFICULT and confusing sometimes. In this tutorial you'll learn EXACTLY how to center text, how to center an image, how to center any HTML element via CSS in MINUTES!
When you are done you'll know how to achieve the following two effects in CSS.
Centering any HTML Element Vertically and Horizontally
The following shows you the results of correctly centering an HTML element such as image. Click How to Perfectly Center a Block Element Vertically and Horizontally with CSS to open this webpage in a new window so you can resize it to see how the boxes move.
Centering Text of any Length Vertically and Horizontally
The following shows you the results of centering text. The text can be short or long and it will always be centered correctly. Click How to Perfectly Center Text of Varying Length Vertically and Horizontally with CSS to go to this webpage in a new window so you an resize and play with it.
I'll give you a detailed step by step tutorial on CSS centering so you learn the correct and arguably the easiest way to center text or images with HTML tags and CSS.
Let's go learn some kick ass CSS techniques!
If you have any questions let me know and I will do my best to help you!
How to Center an HTML Element with CSS ▶