4 Jan 2012

Tutorial - Add a Background Colour to Post & Sidebar titles in Blogger

I have yet another Blogger tutorial for you. This time I'll be showing you how to add a background colour to your sidebar & post titles. It is a very simple process now that Blogger let's you add CSS via its Template Designer.



First of all you need to find out the HTML hex code of your chosen colour. You can go to HTML Codes to find out the hex code. Make a note of it, it should be # then a combination of 6 characters.


Log in to Blogger then navigate to Template>Customise>Advanced>Add CSS

To add the background to post titles & sidebar titles. Copy and paste the following code into the box titled 'add custom css'. Make sure to change the bolded area with the code of your chosen area.

h2 {
-moz-font-feature-settings: normal;
-moz-font-language-override: normal;
background-attachment: scroll;
background-clip: border-box;
background-color: #C5E3EC;
background-image: none;
background-origin: padding-box;
background-position: 0 0;
background-repeat: repeat;
background-size: auto auto;
color: #DD87B4;
font-family: Arial,Verdana,Sans-serif;
font-size: 14px;
font-size-adjust: none;
font-stretch: normal;
font-style: normal;
font-variant: normal;
font-weight: bold;
letter-spacing: 0.1em;
line-height: 1.8em;
margin-bottom: 0.75em;
margin-left: 0;
margin-right: 0;
margin-top: 0.5em;
text-align: center;
text-transform: lowercase;
}


.date-header {
background-color: #ffffff;
}


If you only want to add the colour to sidebar titles, add the following code too.


h3.post-title {
-moz-font-feature-settings: normal;
-moz-font-language-override: normal;
background-attachment: scroll;
background-clip: border-box;
background-color: #none;
background-image: none;
background-origin: padding-box;
background-position: 0 0;
background-repeat: repeat;
background-size: auto auto;
color: #000000;
font-family: Arial,Verdana,Sans-serif;
font-size: 18px;
font-size-adjust: none;
font-stretch: normal;
font-style: normal;
font-variant: normal;
font-weight: bold;
letter-spacing: 0.1em;
line-height: 1.8em;
margin-bottom: 0.75em;
margin-left: 0;
margin-right: 0;
margin-top: 0.5em;
text-align: center;
text-transform: lowercase;
}


You'll be able to see the changes instantly in the template designer. If your happy with the changes, just click on 'apply to blog'.


There you have it, yet another way of customising your blog design that's super easy.

Related Posts:

  • Is iPad3 Set for March Release?Rumours are rife that Apple are set to release the iPad3 as soon as March. The new tablet is expected to include a HD screen & super quick processor.The iPad2 was a big seller for Apple but will the new version have the s… Read More
  • Publish Your Blog on Kindle in 5 Easy Steps I recently added my blog to the amazon kindle network to allow my readers to view my blog on their kindle if they so wish. So i thought I'd do a little guide to what’s involved here.Kindle Publishing for Blogs allows yo… Read More
  • Tech News - The Week's Biggest StoriesThe End of SOPA and PIPAIt was a ground breaking week of online protests but we did it. The Stop Online Piracy Act & the Protect IP act have been shelved. The anti piracy acts which were seen by many as a law against free… Read More
  • Lust List - Blackberry/Porsche Smartphone P'9981As fas as tech collaborations go this one is a beauty! Porsche and Blackberry have teamed up to create a beautiful but highquality smartphone - the P9981. This luxury phone sports a 2.8 inch touchscreen as well asa qwerty key… Read More
  • What is Google+1?For quite some time Google has been trying to find a way of competing with Facebook and develop Google into more of a social network. The +1 is their first step in that direction. Clicking on +1 is a way of endorsing a post, … Read More

2 comments:

  1. Tutorial – Add a Background Colour to Post & Sidebar titles in Blogger http://t.co/pyBHFneP

    ReplyDelete
  2. [...] Add Background Colour to Titles Pin it0savesSave Follow us on Bloglovin, Like us on Facebook, Add us to a circle on Google+ or Come say hi on Twitter Filed Under: Blogging, Design [...]

    ReplyDelete