In my previous tutorial about Creating shadow effect on content area and sidebar area , I had explained you about applying shadow effect in blogger. When you apply shadow effect on both content area and sidebar then shadow between sidebar and content area overlap on each other, which does not look good. To overcome this situation you can create space between sidebar and content area.
In this tutorial I will explain you about how to do
this, for doing this first you need to do is to set the width of content area and expand the template. When you expand the template sidebar area will automatically got gap from content area. Just follow the below steps and before doing this you can see Live Preview of it.
In this tutorial I will explain you about how to do
this, for doing this first you need to do is to set the width of content area and expand the template. When you expand the template sidebar area will automatically got gap from content area. Just follow the below steps and before doing this you can see Live Preview of it.
Set The Width Of Content Area
- Go to Blogger Dashboard >> Template >> Edit HTML.
- Click on Proceed but first backup your template.
- Now, Press Ctrl + F and Search for below code:
<div class='column-center-inner'">
<b:section class='main' id='main' showaddelement='no'>
- In your template Class name may vary, to get your templates class name you can do following things:
- You open your blog into Firefox browser.
- Now, put the cursor on content area and right click on it >> Inspect Element.
- Now click this button
- Now roll over mouse cursor on the content area until you will cover the whole content area in a dotted border boundary. SEE THIS IMAGE
- Now, Add a new attribute to your DIV tag like this:
<div class='column-center-inner' style="width: 500px">
- Now save your template and see your blog. The space will be created there in content area and sidebar area.
Note:-
- Don't forget to change the class name in yellow with your templates respective class.
- You can change the width of content area by changing width in Red.
- You can expand the gap either by decreasing the content area width or by increasing the width of whole template in Template >> Customize >> Adjust Width.
can you help me out with simple blogger template, code is here-http://pastebay.net/1449896
ReplyDeletei can't make space between sidebar and main content.i am waiting for your quick response,thanks
Totally worked! I have been trying to figure out how to do this forever!
ReplyDelete~Jamie
Very creative postt
ReplyDelete