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
  • CES 2012 - Microsoft's KeynoteIt is the end of an era at CES! Last night saw the world's technology press gather for Microsoft's final CES keynote speech. And while Gary Shapiro played down Microsoft's departure it was obvious from Steve Ballmer's speech … Read More
  • Introducing.........Kindle FireIt is yet to be released in the UK but already it is tipped to achieve sales figures to rival the iPad.Its biggest selling point is the fact that it'll cost half the price of the iPad. An iPad2 retails at £399 while the Kindl… Read More
  • Tech in 2012 - What Can We Expect?The next 12 months is going to be an extraordinary time in the tech world so I thought it was time I examined what products will be rocking our world in 2012. These are certainly exciting times! So here I show you what is hap… 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

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