Tuesday, April 24, 2012

How to Add beautiful Post Divider Between Blogger Posts


In today's Blogger tutorial I show you how to enhance your Blogger blog (Blogspot blog) by adding a post divider to your Blogger template. Used effectively post dividers can really jazz up your blog and will lend it that individual feel which most of us are hoping to create. 

This tweak is very easy and well within the capabilities of any Blogspot blogger. Only a few simple changes to your Blogger template are required and these are in the CSS styling section.


By way of example I will use a divider that I downloaded from the internet free by searching for free divider graphics. Here are some sample dividers you can use to get started:



URL address:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj76h6L4Txa7BR27DQ1KN_I98zCRMphU8zG9CIZDMtqA75XAk2v9wOYVCAOOBwTLBL9tEvZs7Z0cG7dSrH3PdBmneAXbv-e2OaoYqorRFYHyPucrThpR9sGX0BO38AE_gUqQGh6FhHfLoc/s400/ribbon.gif


URL address:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXCvfuUTrKJkDf98veqMkjD8-muC5SWG2_hEceyq7apaKtfDixDJg1SIo8yt81jYgOULQDuxV1BD6EEzk3YLwGiYs1UhqZszcyVrBGNN0vF3A6WtLbn_9T-yYoZZtLLnPtZPKvzVuEt6I/s400/bar1.gif


URL address:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOrXFA_H4yPy0IMA31GNF8Bg3_OWJHV_JpQeBH4PPpivFi9bJtCgVBQn40o_dN85R6V4JWmaQnqUDG6ZPZcapmnNVvuFQmPpXHrby6HUuMYjSMFHvZGJkBP0pQzC3qFs6rO0VXMmRV-ok/s400/barbsmpl.jpg


URL address:
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPoXPFcZmdtypCxOk87pBRHgTn1Er7FSAB1MWCLFvFy1WMPdFZHWwg9FDPWLgFXBLiZ4RTYpIWl5qbyMwBHtR749sBOt78xxC1F8K3Kxlks92o7okgTaWGKwEHAGn_oDGM4RIlt-_MJts/s400/bar47.gif


How to Add a Divider Between Posts in Blogger
  1. Login to Blogger if not already logged in
  2. From the Dashboard navigate to Layout > Edit HTML
  3. Back up your Blogger template as a precaution by downloading it to your computer
  4. Find the following line of code in your template:
    .post {

    You are likely to have something like this in your template already:

    .post {
    margin:.5em 0 1.5em;
    border-bottom:1px dotted $bordercolor;
    padding-bottom:1.5em;
    }

  5. Paste the following lines of code to this block making sure you paste them before the closing curly bracket:
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj76h6L4Txa7BR27DQ1KN_I98zCRMphU8zG9CIZDMtqA75XAk2v9wOYVCAOOBwTLBL9tEvZs7Z0cG7dSrH3PdBmneAXbv-e2OaoYqorRFYHyPucrThpR9sGX0BO38AE_gUqQGh6FhHfLoc/s400/ribbon.gif);
    background-repeat: no-repeat;
    background-position: bottom center;
    margin:.5em 0 1.5em;
    padding-bottom:1.5em;

  6. If any lines are duplicated remove them.
  7. Remove any line beginning with: border-bottom: eg
    border-bottom:1px dotted $bordercolor;

  8. You will now have a block of code which looks like this plus any extra lines from the existing code in this block:
    .post {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj76h6L4Txa7BR27DQ1KN_I98zCRMphU8zG9CIZDMtqA75XAk2v9wOYVCAOOBwTLBL9tEvZs7Z0cG7dSrH3PdBmneAXbv-e2OaoYqorRFYHyPucrThpR9sGX0BO38AE_gUqQGh6FhHfLoc/s400/ribbon.gif);
    background-repeat: no-repeat;
    background-position: bottom center;
    margin:.5em 0 1.5em;
    padding-bottom:1.5em;
    }

  9. Click on Save Template to save your changes
  10. Click on View Blog to see your new post divider between posts

Tips and Troubleshooting
  • To change the divider to one of the above replace the URL address of the image (in red) with the URL address of the new image you want to use.
  • To use your own divider image download to your computer from the internet and then save the image to a photo image service like Photobucket. Replace the divider image URL address (in red) with the URL address of your new image
  • To increase the padding around the divider change the following line of code:
    padding-bottom:1.5em;

    to

    padding-bottom:2.5em;


    Thats all...Enjoy 

No comments:

Post a Comment