Community News
How to Center a Div (Horizontally and Vertically)
psayre23 13 Apr, 2009
Share on Facebook Tweet this Delicious StumbleUpon Reddit Subscribe
Centering a div horizontally and vertically has always been a pain for CSS. Not any more! With this trick, you can create a centered block in no time.
Need more? Read these posts:
- Create a vertically centred horizontal navigation
- Horizontally Scrolling Websites Showcase & Tutorials
- How to distribute elements horizontally using CSS
- Vertically Center Multi-Lined Text
- Why is there no float: center?
Comments
No comments yet.
Sorry, further comments are disabled for this post.
CSS Globe is a web design magazine brought to you by Alen Grakalic and kept fresh with member contributed news and exlusive articles.