Jun 10, 2013

How to center stuff in Blogger

nerd diy centering for blogger blog

Log in to your Blogger blog, go to Template > Customize > Advanced > Add CSS

Code to center your Header Image:


#header-inner img {margin: 0 auto;}

To center your Header's Title and Description (text):


#header-inner {text-align: center;}

Code to center your Post Titles:


.post-title {text-align:center;}

Code to center your Post Dates:


.date-header {text-align:center;}

Code to center your Gadget Titles:


.section-columns h2, #sidebar-right-1 h2, #sidebar-left-1  {text-align: center;}

Code to center your Sidebars:


.main-inner .column-left-inner, .main-inner .column-right-inner {text-align: center;}

Code to center your Tabs (menu):


.PageList {text-align:center !important;}
.PageList li {display:inline !important; float:none !important;}


Don't forget to click Apply To Blog. And, you're done!

Let me know if there is anything else you want to center & I'll do my best to update this post.