Skip to main content

Transparent Backgrounds Of Your Page Or Columns In Blogger

I have many times been asked about changing the background of the main page to an image, and also about how to make the content columns transparent so that the background will show through. So here is your answer. You can also use this technique to change the background of just one content column if you prefer. Just follow step two for the content column(sidebar left/right etc)you are wanting to add the background to instead of the main wrapper.

PART 1 - Changing background for whole page
find this code, or similar, in your template
body {
background: $bgColor;
margin: 0;
padding: 0px;
font: x-small Verdana, Arial;
text-align: center;
color: $textColor;
font-size/* */:/**/small;
font-size: /**/small;
}


and replace the
$bgColor;

with
url("http://www."url_of_your_image".com);
PART 2 - Changing background of specific content column

If you are only wanting to change the background of your main column find this code in your template
#main-wrapper {
width: 484px;
margin: 15px;
float: left;
background-color: $mainBgColor;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

and either add
background: url("http://www."url_of_your_image".com);
or edit as in first example. The procedure for changing the background of your sidebar left/right wrappers is the same except you need to find these blocks of code, or similar.
.sidebar-wrapper-left {
width: 165px;
float: left;
background-color: $mainBgColor;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
.sidebar-wrapper-right {
width: 275px;
float: left;
background-color: $mainBgColor;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
PART 3 - Transparent Backgrounds

If you want your your main content and sidebars to be transparent so that the page background shows through change the main page background as described in the the first part of this post and then change
background-color: $mainBgColor;
to
background-color: rgba(0,0,0,0);
for your content wrapper, main wrapper and sidebar left/right wrappers.

later all and have a profitable and productive day

Comments

Popular posts from this blog

What the F Does the C Stand 4

I know all of you have been waiting with baited breathe for my first contest. Well we are taking the plunge together. Here is the chance for all of you to win something for doing almost nothing. Hopefully you won't think this Contest is full of Sh-t . For many many years I have had the "nickname," I guess you could call it, of Cman. Here lately, probably due in part to #10 in my 10 Reasons John Chow Probably Thinks This Blog Is About Him article, I have been getting asked more and more what the C in Cman stands for. Herein lays the focus of this contest. For the person who can guess what the C in Cman stands for I will give them $100. If multiple people guess correctly the winner will be chosen by random drawing from among the correct entries. If no one guesses correctly I will randomly pick from all entries and will award the winner of the losers $20. Clarification: 1. In the words of Juan Sanchez Villa-Lobos Ramirez, "There can be only One." Winner that is. E...

Give Viral Marketing A Chance !

==== Copy and Paste below this line ==== Instructions: Important Update - Please read here ! 1.) Copy and paste (for those of you using blogger post in the compose tab, not the edit html tab, of your post editor) the matrix of “ViralTags” below courtesy of Founders Cafe ( to support Jimmy’s quest of launching his own Internet Startup with a shoestring budget, please consider subscribing to his Full RSS Feed to see his triumphs and struggles in real time ). 2.) Substitute the Host Tag and one of the “Viral Tags” in the matrix with your anchor text of choice with your blog’s URL. Please keep anchor text to a max of 3 words to keep the matrix size manageable. 3.) When you get a ping back from someone that has your link in one of their “Viral Tags”, practice good karma by copying his/her Host Tag’s anchor text (automatically the associated link will also be copied) and paste it over one of your “Viral Tags” below. 4.) Encourage and invite your readers to do the same and soon this ...

The Ghost Of Ashwins Past

Wow some people are beyond pale. Here I am just coming off a somewhat major illness, making life changing decisions, quitting blogging, selling the site, and what response do I get? I get an email not wishing me well, but attacking me using somewhat harsh language and accusing me of pulling an Ashwin with the current contest . I am only giving away $50 bucks. Chillax I'm good for it. Here is my response to the email. SUCK IT! My actual response really wouldn't have been appropriate. Okay, first it is my blog and I'll do what I want with it. Second, I have been completely honest and upfront with contests and have always lived up to my word. Third, where in my last post did the word contest appear, and where in relation to that was a change in said contest mentioned? Funny thing is after tracking the persons entry it wasn't a valid entry anyway. He, oops, or she should have followed the rules. I have also decided that due to the length of the contest, and to give this guy...