My first attempt at modifying the appearance of this blog after a makeover with the Blogger's Template Designer, by editing its Template via Design | Edit HTML, was quite a handful! But armed with the extra knowledge acquired since and further experimenting with the Designer for my other blog, Peacockflower's World, I'm extremely happy to have discovered the easier alternative way to do it.
No need to go about the long and winding way of editing the blog's template (i.e. Edit HTML) which can be quite intimidating and may risk messing up the codes! Just use custom CSS (cascading style sheets) to restyle the feel and look of your blog! Once you've learned how-to, it's really quite simple, fast and fuss-free!
Follow these steps to
add custom CSS to your template, using the Template Designer :
- Sign in to your Blogger account. At Dashboard, click Design | Template Designer.
- Go to Advanced | Add CSS tab. Add your custom CSS code snippets in the field box provided on the right. The best part about this method is changes you make will be reflected instantly in the live preview below which makes it so easy to keep amending the values, etc until you're finally happy with the results. You can click the Expand Preview if necessary for a broader view.

- If you're satisfied with the changes, just click the orange Apply to Blog button to save changes.
- Finally, click the Back to Blogger button to quit the Blogger Template Designer and return to the Page Elements page. That's all to it!
All the custom CSS added via the Template Designer will also be shown in the blog's template at Design | Edit HTML page, just before the code: ]]></b:skin> where you can edit them or add new ones too.
Now, let's take a look at the kind of custom CSS code snippets that can be added to your template to restyle your blog's appearance. There are so many, just check out at W3Schools CSS Tutorials for more in-depth examples and Dave Raggett's W3C Introduction to CSS.
To assist and give you an idea, below is appended a summarized guide to some of the popular CSS tweaks that you may want to try. You'd notice that each CSS code snippet starts with a tag or selector name, and then followed by a list of style properties and a semicolon, inserted between the curly brackets { and }. If there is more than one style property in the list, separate them with a semicolon.
| CHANGES YOU MAY WANT TO APPLY | CSS CODE SNIPPETS TO ADD (you can change the px value, color, etc. as highlighted in orange or remove the unwanted style properties as desired) |
|---|---|
| 1. HEADER SECTION: | |
| - Blog's title: how-to center-align text or set a specified left/right position, the latter being useful if you've added an untitled header image. Also, reduce the height of the top margin, it's okay to use negative values. | .header h1 {text-align:center; top-margin: -0.3em;} Just change the position center to left or right and the value in px as you wish. Alternatively to set a specified left position, follow example as below: .header h1 {margin-left:255px;} |
| - Blog's title: how-to change the font family, size and text transformation. Also, how-to include letter-spacing. | .header h1 {font-family:'Apple Chancery', cursive; font-size:300%; text-transform:uppercase; letter-spacing:0.1em;} |
| - Blog's description: how-to center-align, capitalize and bold the text, change the font-family and font's size, and reduce the top and bottom margin to shorten the wide gap/space between the title and description. | .header .description {text-align:center; text-transform:capitalize; font-weight:bold; font-family:georgia, serif; font-size:90%; margin-top: -10px; margin-bottom: -5px;} |
| 2. PAGE LIST (TABS) SECTION: | |
| - Page tabs: how-to change the font style, size and color. | .tabs-inner .widget li a {font-family:'Lucida Handwriting', cursive; font-size:120%; color:red;} |
| - Tabs default background: how-to remove the background color, shadow, etc. | .tabs-cap-top, .tabs-cap-bottom, .tabs-outer, .PageList, .PageList ul, .PageList .widget-content {border:none; background:none; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none ;} .tabs-inner .section {border:none;} |
| - Other widgets below the tabs: how-to center-align and decrease the height of margins between them. | .tabs-inner .widget {text-align:center; margin:5px 0;} |
| 3. BLOG POST SECTION: | |
| - Images/pictures: how-to remove border and shadow around images. | .post-body img {padding:0px; background:transparent; border:none; -moz-box-shadow: none; -webkit-box-shadow:none; box-shadow:none;} |
| - Post footer: how-to add a background color and change/reduce the font size. | .post-footer {background-color:#f2f1f2; font-size:85%;} |
| 4. SIDEBAR SECTION: | |
| - Widgets' title: a) how-to text-transform the title; b) change the font-family; c) remove shadow in the background | .sidebar .widget h2 {text-transform:uppercase; font-family:'Lucida Handwriting', cursive; text-shadow:none;} |
| - Gadgets (widgets): how-to reduce or shorten the height between gadgets. | .sidebar .widget {padding-bottom:0px;} |
| - Profile image: how-to remove background color, border and shadow around the image. | #Profile1 img {padding:0px; background:transparent; border:none; -moz-box-shadow: none; -webkit-box-shadow:none; box-shadow:none;} |
| - Realign the vertical top of sidebar column: how-to align the top of sidebar column with that of the main post column. | .main-inner .column-right-outer {margin-top:0.6em} (Note: change the em value accordingly to fit your template design. Use a negative value if the sidebar's top is lower than the top of main column) |
| 5. FOOTER SECTION: | |
| - How-to center-align widgets and change the font-size of text. | .footer-outer {text-align:center; font-size:90%;} |
| - How-to reduce or shorten the height between specific widgets. | (First, you have to identify your widgets' ID - go to Design | Page Elements, and mouse over the specific gadget's Edit link. The widgetId can be read on the browser's status bar. Example widgetId=HTML3 will be referred to #HTML3 in the CSS. You can group the widget # [each gadget is followed by a comma, except for the last one] and add a style for them as seen below.) #HTML3,#HTML6,#Attribution1 {margin:2px;} |
| 6. GENERAL: | |
| - How-to reduce or shorten the height (space) between the Header section (or the PageList widget if you've added one) and the Columns below. | .main-inner {padding-top:20px;} |
Other related links:
- Blogger Help on Editing CSS in the Template Designer
- Blogger Help on What can I do with CSS
- W3Schools on CSS Examples
Keep learning~~keep smiling~~keep sharing!!
Last edited: November 11, 2010
Just went to peep at the Peacock blog, looks distinct against the black background! Thanks for sharing!
ReplyDeleteThanks, dear friend! Something different for a change, huh!
ReplyDeleteHi Jacqueline,
ReplyDeleteCheah from No-Frills Recipes refer me to you and I would like to get some helps from you.
I've tried to hide the Navbar in my blog http://anncoojournal.blogspot.com.
But after hiding the Navbar can you please tell me how to sign in to own blog. Thanks for your help :)
Hi Anncoo!
ReplyDeleteI've never done what you did but googling for answers on how to sign in after hiding the navbar led me to understand that you'd need to sign-in at www.blogger.com and if you've already signed in it will transfer you direct to the Dashboard. So, best to bookmark that site for easy access.
Thanks Jacqueline for the information.
ReplyDeleteI really learnt a lot from your site :D
You're most welcome, Anncoo! Thanks for the positive feedback! Great to know that you've found the site useful.
ReplyDeleteThanks again Jacq! I managed to use Auto hide Navbar.
ReplyDeleteThe Auto hide works when visitors mouse over to the top of the original navbar then the navbar will appear and if visitor move the mouse down (not in the navbar area) then automatically navbar will disappear and this is also easier for me to sign in and goes directly to the dashboard.
Yes, Anncoo! Thanks to your request for help that I stumbled upon this mouse over effect when googling to provide you answers.
ReplyDeleteI wasn't happy with the disappearing navbar which I experimented after responding to your enquiry because though I can sign in via blogger.com, I couldn't find the way to sign out or go to dashboard (the admin area) when in the blog's homepage. Thus that made me google-search again for a solution and was delighted to learn about the mouse over effect and applied straightaway at my other blog, http://peacockflower.blogspot.com/ and KIV to write a tutorial about it later.
Thought of informing you when I eventually do that but you beat me to it! Glad that you've discovered this better alternative too! :-)
thank you thank you thank you :)
ReplyDeleteI've been trying to remove the border from my images for ages finally something that worked!
The pleasure is all mine, Josie! I'm so happy for you and really appreciate your feedback. Thanks!
ReplyDeleteReally Nice piece of information, it helped
ReplyDeleteThanks
Navneet Singh Chauhan
http://navneetsinghchauhan.blogspot.com/
My pleasure, Navneet! Great to know it helped. Thanks for taking the time to show your appreciation.
ReplyDeleteJacqueline,
ReplyDeleteI went through many blogs but, your blog has the most useful information whch is very easy to understand and implement.
Thanks a lot.
I have a small question:
Do we really need to use custom templates to make our blog more SEO friendly or to give it web site style look?
Thanks again
Umesh Mishra
Oooh Umesh, thanks for the big grin you've put on my face with your lovely compliment! :)
ReplyDeleteI really don't know much about SEO friendly but my elder son who is computer savvy had advised me to always write good and useful content, using appropriate keywords if I wished to have my posts noticeable by search engines.
In my opinion, content and keywords are the key, not the blog's template or design. Following your enquiry, I did a google-search and found info at these sites educative:
1. Creating SEO friendly content. and
2. What is SEO friendly content?
Hope this helps!
Great and informative content,but i have an urgent problem.
ReplyDeleteHow do i insert google adsense and chitika codes within posts for texts to wrap around with the new blogger templates?
Thanks
Thanks for the thumbs-up, lokoyizone!
ReplyDeleteSorry though that I'm unable to advise further re your request.
Woohoo! I finally got it! Thanks =)
ReplyDeleteMy pleasure, Bree!
ReplyDeletehi there.. Tried editing my blog with the CSS codes, esp for centering the header and tabs etc..,doesnt seem to work !! what may be the reason??
ReplyDeleteHi Mom Chef,
ReplyDeleteDo try again and follow the tutorial very closely, especially the CSS codes. For centering your blog's title, you'd need to add the following CSS code in the Template Designer, which is already included in my tutorial:
.header h1 {text-align:center;}
There should be a full-stop before the word header which you may have omitted as viewed from your page source.
Hope this helps.
Hi, this is so awesome. Thanks a huge amount. I've used some of your CSS to customize my blog. I've been googling around trying to find the CSS to reduce the amount of space/pad between my widgets. I added your code above to the CSS and it didn't seem to have an effect? Could it be a different property?
ReplyDeletehttp://mmmcrafts.blogspot.com
Thanks for feedback, Larissa!
ReplyDeleteTry this CSS instead:
.sidebar .widget {margin:20px 0;}
where the 20px value to be changed as you like. Best to add this CSS snippet at the Template Designer so that you can preview the changes instantly rather than at Edit Template which may fail if incorrectly coded/positioned.
In fact, I've just experimented this at my test blog and it worked fine. Hope it's OK for you this time!
hi Jacqueline:
ReplyDeleteI did try the Blog title centering once more, even with the ".header" and followed the CSS tutorial.. still didnt work :( however, other CSS snippets that you gave were so helpful!
This has been a really big help thank you!!
ReplyDelete@ Mom Chef - Sorry, I can't help you further in this issue.
ReplyDelete@ Kristin - You're very welcome! Appreciate your positive feedback. Thanks.
Can you help to centre my picture in the header by adding the correct the css code?
ReplyDeleteFound this from in blog forum from: westerntom's discussions
ReplyDeleteIn the Add custom CSS box, add some style for the image:
#Header1_headerimg {margin:0 auto;}
The preview should show the change. If you cut and paste above, it may not show. Add some letters (kjh) after } and as soon as the preview shows, delete the letters.
Click APPLY TO BLOG.
View the blog.
This worked for me! ;-)
Thanks for sharing this tip on header image centering, Jenny! I'm sure there are bloggers who'd find this most useful. Moreover, you've saved me much time to find an answer to your previous question. ;-)
ReplyDeletei stumbled on your blog while searching for tips on how to remove border images. thanks for these tips!
ReplyDeleteYou're most welcome, Janie. Delighted to know they were helpful and thanks for feedback.
ReplyDeleteMe newbie to tech. Learning a lot in this blog. Requested to provide 1. Email subscription to post (feed burner) 2. Search in this site (including comments). Thank You Wish Regards.
ReplyDeleteGreat to know you've found this blog helpful, Ifinder.
ReplyDeleteRe email subscription, I haven't the time to look into that matter as yet. Meanwhile, if you wish, you can sign in as a follower and will automatically receive updates to your Reading List at your Dashboard.
On the second request, I've already provided 2 search boxes - one at the top of sidebar and the other located just above the footer.
Sure to join as a follower, after myself free to regularly visit and participate here. I used to follow my email and occasionally dashboard. Requested to set boxes here to search within comments also.- I Have some requirements and problems in blogging. May I request for your guidence? Thanking you again with high regards.
ReplyDeleteSorry, Ifinder! Instead, please feel free to browse the many tutorials I've made available in this blog and see what suits your taste. Check them out at the Archives page at the navigation bar above.
ReplyDeleteThank you so much for this - it is saving me so much time :).
ReplyDeleteOne question, is there a css code to make the right sidebar in a 3 column layout align right? I'm working on a test blog design and it seems to align left by default.
Thanks again :)
You're most welcome, Pat.
ReplyDeleteI'm sure there is a CSS code for that purpose but I'm not so tech-saavy to help out. I did experiment using the following CSS:
.sidebar .widget {text-align:right;}
but it aligned right for both the sidebars. Sorry!
Really,learnt a lot from your site,take a look at my blog,and comment.
ReplyDeleteGreat to know, Alan! Thanks!
ReplyDeleteI must say THANK YOU!!!
ReplyDeleteI was hating those borders!!
Glad I found this post.
I will look around your site some more.
My pleasure, Sue Sueper. Delighted that you're happy now and hope your scouting around will give you more joy! :)
ReplyDeleteYou are a lifesaver!! Seriously! I was so frustrated with the borders around my pictures and couldn't find out how to remove them until now. THANK YOU!!!
ReplyDeleteYou're most welcome, Elizabeth! Thanks for your sweet comment and appreciation.
Delete