Geeks With Blogs

News Please visit me at my new blog!!

profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.



Programming and Learning from SD

I’m continually forgetting this (and having to ask), so here’s a reminder to myself and maybe it will be useful to you.

To center text horizontally in div, use display: block; margin: 0 auto;

.center-horizontal {
  display:block;
  margin: 0 auto;
}
Posted on Wednesday, September 16, 2015 4:06 PM CSS3 | Back to top


Comments on this post: CSS horizontally centering

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Aligned | Powered by: GeeksWithBlogs.net