Friday, November 13, 2009

How to set Justify content for all the posts in Blogger blog

For those who are new to HTML or CSS, you might be worried about justifying each and every post of yours. It can be done very easily by adding one attribute to the post body in CSS of the blog template.

Go to Layout of your blog, the go to Edit HTML, then go to the template and search for .post-body. You will see some attributes in the flower brackets as shown below,

.post-body {
  margin:0 0 .75em;
  line-height:1.6em;
  text-align: justify;
  font: $bodyfont;
  font-size: normal;
}

 The text-align property should not be there in the default template. Add it. Thats it.

0 comments:

Post a Comment