How to change background color of your blog (blogger)

MP
I wanted a different background color for the sidebars and main page in my Blog so that the sections are distinct and little obvious. It is quite simple.
Let us proceed with the tutorial:

    1.     Go to Dashboard > Design > Edit HTML.
    2.     Back up your template.
    3.     Tick the  Expand Widget Templates checkbox on top right of the code window.
    4.     Find the following code in your HTML (The code block can be little different based on the tempalte you are using):

     #sidebar
    {
      width:150px;
      float:left;
      padding:8px 0;
      margin:0;
      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 */
    }

   5 .The only change you got to make is add the following line of code to the above block
        background: #FFFFFF;
                        Note: #FFFFFF is the hexadecimal color code for white. You can search around for hexadecimal code for other colors you want. Here is a page that has a huge collection of such codes.
Your code will look like this:

     #sidebar
   {
      width:150px;
      float:left;
      padding:8px 0;
      margin:0;
      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 */
      background: #FFFFFF;
    }
PS: the hexadecimal color codes like #FFFFFF can be replaced by the names of colors such as red, blue, white, etc.

Smile and Live Happy!

0 comments:

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | JCPenney Coupons