Flag This Hub

Change background color of main content area: How to change background color of a blogger template's main content area?

By


The default design and color of the blogspot templates look dull for most of the blogs. So, bloggers spent much of the time to find a nice template. Most of the cases, they don't like the color of the template. All the blogspot templates are not so nice to see. That's the main reason for searching blogspot template. But is this a good idea to search always the blogspot templates and then again change the template? I do not think so. The template which you are using may be great. Just you need a little effort. You just need to learn the way to change the color of your blogspot template. This is really a very easy and interesting task. But the great benefit is that it really pays you much. The tag background:$bgcolor is responsible for all types of background color where $bgcolor is the name of the color.This page contains information related to changing main content area's background color. Here, main content area means both the posts area, the sidebars area and the footers area also.

To change the posts area and the sidebars color, we must have to access template code. You can go to the template code from Dashboard, then select the blog's layout and then Edit HTML option. For details, click here [How to find and edit blogspot template code?]

Main posts section and the sidebars section code of Minima template is located under #outer-wrapper block. The outer-wrapper code of Minima templae looks like the following code segment:

#outer-wrapper{
	width: 660px;
	margin:0 auto;
	padding:10px;
	text-align:$startSide;
	font: $bodyfont;
}

Look, there is no line with background: tag. As there is no tag with background: tag, the color of post area and sidebar remains nothing. So, to make color to the posts area space and the sidebars, we have to add some code with background: tag. For example, we want to change the color of the content area i.e. the posts area and the sidebars area to the right-hand side color. The color value of the right-hand side rectangle is #E3E4FA. So, to change the sidebars and posts area with that color we have to append the following line of code to the #outer-wrapper block of code

background: #E3E4FA

So, after adding the above line of code, the #outer-wrapper section of a Minima template looks like the following:

#outer-wrapper{
	background: #E3E4FA	
	width: 660px;
	margin:0 auto;
	padding:10px;
	text-align:$startSide;
	font: $bodyfont;
}

Live view

In this page, I discuss the process of changing color of the posts area and sidebars. A blog is already implemented by using the tutorials of this page. It just shows you the effect of this page tutorials. I don't care to beautification of that blog. I just mention it as an example to make you understand how the above code will work. You can color any color by using the color value. In the useful articles section, you will find the link to all types of color value. Now, if you wish to see the effect of the above code, follow the following link:

Click here to see the effect of this page tutorial

By following the above tutorials, you can easily change the main contents areas background color.

© This tutorial is written by Blog.

Comments

Bunny 2 years ago

Thank you for this. It helped me so much :)

eszol 19 months ago

thx man!

bluezy 15 months ago

I am content with all my background edits except for when I do a blog search on my blog, the background is white when I need it to be at least black or the image I have of black static for the rest of my blog. I also would like a background under the text of my page bar. Right now it is clear and clashes with my background where you can't see it well. Same problem occurs with my first problem.

I was wondering where the html for these are located and I wanted to change color to 000000?

Bluezy 15 months ago

Oh wait sorry I figured it out by displaying the page, with the search part above in white open, then I went to the View tab and opened the source code. Then I located the color white and copied that code. I opened my html of my blog then control f"d to and pasted the html from the source to locate it in the blog code. It was the only one and exact, so I changed the color from ffffff to 000000 and previewed. Oh I got lucky! It worked.

If I knew sumptin I might be dangerous!

I still have the clear bar problem and wonder how to locate that html to change it. I will play with it, maybe look for code that says no background?

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    blog's Recent Pages

    rancidTaste's Recent Pages

    Like this Hub?
    Please wait working