![Three lines of CSS to center anything horizontally and vertically — Amit Merchant — A blog on PHP, JavaScript, and more Three lines of CSS to center anything horizontally and vertically — Amit Merchant — A blog on PHP, JavaScript, and more](https://www.amitmerchant.com/cdn/three-lines-of-css-to-center-anything-horizontally-and-vertically.png)
Three lines of CSS to center anything horizontally and vertically — Amit Merchant — A blog on PHP, JavaScript, and more
![Image beside multiline text in 'vertical-align: middle' with fluid layout (Pure CSS from YUI) - Stack Overflow Image beside multiline text in 'vertical-align: middle' with fluid layout (Pure CSS from YUI) - Stack Overflow](https://i.stack.imgur.com/rsKfs.png)
Image beside multiline text in 'vertical-align: middle' with fluid layout (Pure CSS from YUI) - Stack Overflow
![Centering List Items Horizontally (Slightly Trickier Than You Might Think) | CSS-Tricks - CSS-Tricks Centering List Items Horizontally (Slightly Trickier Than You Might Think) | CSS-Tricks - CSS-Tricks](https://css-tricks.com/wp-content/uploads/2007/12/centeringhorzlistitems.jpg)
Centering List Items Horizontally (Slightly Trickier Than You Might Think) | CSS-Tricks - CSS-Tricks
![How do I make a vertical line down the middle, also a horizontal line centered? - HTML & CSS - SitePoint Forums | Web Development & Design Community How do I make a vertical line down the middle, also a horizontal line centered? - HTML & CSS - SitePoint Forums | Web Development & Design Community](https://i.imgur.com/GdRYLwe.png)