The structure of CSS Styling Section

>> Browse templatesMoney tips22 comments

Blogger Template Design: Tutorial 3

In this tutorial, I'll show you the structure of CSS Styling Section, which is the 2nd Section in the Blogger Template Code Structure. Again, not all templates have the same structure. It basically comes down to the personal style of a designer. But I've found out the structure that I'll show you is quite logical and makes things a lot easier when coding, debugging, and customizing your template. Once you've understood this tutorial, you can later change the style and structure any way you want. But first you have to understand them and I've put out here a very easy structure to understand and use.

I've cut down the CSS Styling Section into 9 smaller subsections. For now, I'll describe the subsections in general. We'll get to the details on the coding inside these subsections later in the following tutorials. Always refer to the Structure of a Blogger Template to help you understand better the subsections and containers that I explain here.

Subsection 1 - Variable:
This subsection contains the declaration (the introduction) of the font and color variables that appear in the Fonts and Colors tab in the Layout page. For example, the Text Color or the Text Font variables that you can choose and modify using the Fonts and Colors tab. In my templates, I've added a lot of variables (close to 40+) compared to some of the standard Blogger templates to make it easy for you to customize a lot of things on the template.

Subsection 2 - Global:
This part contains the code to control the general appearance and layout. If you look at the green bar above, you'll see the code "body {.....}". This means that every code that goes inside the {.....} will control the general properties (size, layout, & appearance) of the body of the template (everything that the computer screen covers). For example, it controls the width of your whole template and the background color or image. But it doesn't control the detailed properties of the whole template (that is done by all the other subsections). Or, if you do set the detailed properties inside the body container, say the Text Font, and then reset the same properties inside a smaller sub-container, the properties set in the body container will be overridden, or canceled.

Inside this subsection, you will also find other important large containers - the Outer-wrapper and the Content-wrapper - so this subsection is where you want to look for if you want to tweak those containers.

Subsection 3 - Header:
This part controls the properties of everything inside your Header-wrapper container. The most common ones are the Blog Title and the Blog Description. In most of my templates, I've added an extra object in the Header-wrapper - the Linkbar (or the horizontal menubar). Typically, you can't add extra object in the Header because you can't use the Add Page Element tab. To add the Linkbar, I had to change the 3rd Section of the template code structure (which is the Data section). In my own blog (, I added something else, which is the Google Search Bar. Ideally, you can add just about anything you want there, if you know how to deal with the 3rd Section. We'll get to this later.

Subsection 4 - Main:
This part controls the properties (size, layout, and appearance) of everything that the Main-wrapper block contains - the Date Header, the Post, the Comment, the Feed Link, and any widgets that you drag into the Main section using the Add Page Element tab.

Subsection 5 - Sidebar:
This part controls the properties of everything inside your Sidebar-wrapper - for example the Labels, Blog Archive, Adsense units, Link Lists, etc. But, it doesn't set how many sidebars you have or their locations on the blog (example Sidebar-Main-Sidebar or Main-Sidebar-Sidebar). That part is done in the Section 3 of the Blogger Template Code Structure - the Data Section.

Subsection 6 - Miscellaneous:
This part controls the properties of additional elements in your blog that's not controlled by all the above subsections. These elements are the Profile (or the About Me block), the Blogquote, and the Code. It means if you want to, say, change the color of the quoted text or the font of your nickname in the About Me block, this is where you want to look for to tweak it.

Subsection 7 - Post-Footer:
In my Generic Template, this part controls the properties of 3 things:
  1. The Post-Footer - the texts below your post body. This is the part that contains information about your post, or the texts that say "Posted by YourNickname, Labels: ....., 5 Comments, etc.
  2. The Blog-Pager - the links at the bottom of your blog posts that say "Newer Posts, Home, or Older Posts".
  3. The Feed-Link - the link that says "Subscribe to: Posts (Atom)".
Subsection 8 - Comment:
This part controls all the properties of the Comments section in your blog.

Subsection 9 - Footer:
This part controls all the properties in the Footer section. Generally, the Footer section contains some text explaining the ownership or copyright of a blog. In some other blogs, they also put extra stuff in the Footer section, like the Recent Posts or Popular Posts in 2 or more columns. Basically, you can just put about anything in the Footer as in the Sidebar. But if you want to add more than 1 column to your Footer, you have to tweak the 3rd section of your Blogger Template Code Structure.

Next Tutorial:
The next tutorial is some basic explanation about the codes to Set the Properties of a Container for you to get the ideas on what the codes inside all the containers mean.


E-L-L-A May 14, 2008 8:59 pm  

Hello! Good day.

I just wanna say that I am using your template for my blog ( I've also read your tutorials, and basically have an idea now of the structure of the codes with your help- thanks so much by the way.
I just would like to forward to you a concern about my profile description located in my sidebar.
I'm really hoping that you could have the texts automatically justified, whatever is written. It's showing great with IE, but not with Firefox. I am more accustomed to using Firefox now, and I can't seem to have the texts justified (aligned on both sides). I basically would want the same text justification in my posts. too Text-align is currently at LEFT.

Will really be grateful if you could help me with this. Please take a look at my blog if you need to.


Mai Trâm November 01, 2008 12:17 am  

I have been looking for several days for a clue how to create 2 columns at the footer. I am so glad to spot this information. Hopefully, this is a good start. Thank you for the tutor.

SostyPasha January 31, 2009 10:57 pm  

Thanx so much :)

Edwin Chew February 01, 2009 1:01 am  

I am using your template for my blog(

I am still struggling with the CSS styling section, as how to set image to the background of the specific wrapper.

Pls get to me soon

Gayl May 24, 2009 1:47 pm  

I use your templates for a lot of my blogs and I have been trying to incorporate tutorials I have seen for random banners/headers and cannot seem to make it work. I have the code to use but don't understand where to add it to make it show up.

Any help is greatly appreciated. Currently am enamored with the Romantico template so that is what I am using along with the Solitude and Minimalist F.

Thanks in advance; your templates rock1

Peter Young November 08, 2010 5:04 pm  

thanks for helping me with css, I want to have my own layout and just starting to learn the basics.

HHKING April 01, 2011 8:19 am  

Thanks for the info, not too many sites explain how to make/edit blogspot templates.

StyleIDnet September 16, 2011 11:48 am  

This is great but I am using simple template and have nothing like sidebars or outer-wrapper ..... do you know what 'words' would replace those instead?

jaffa March 13, 2012 5:02 am  

Templates are a feature of the C++ programming language that allow functions and classes to operate with generic types. This allows a function or class to work on many different data types without being rewritten for each one. Templates are of great utility to programmers in C++, especially when combined with multiple inheritance and operator overloading. The C++ Standard Library provides many useful functions within a framework of connected templates. Thanks.
car insurance Texas

jaffa March 17, 2012 12:07 am  

Templates are of great utility to programmers in C++, especially when combined with multiple inheritance and operator overloading. The C++ Standard Library provides many useful functions within a framework of connected templates. Thanks.
Hotel Refurbishment

jaffa April 20, 2012 12:01 am  

CSS specifies a priority scheme to determine which style rules apply if more than one rule matches against a particular element. In this so called cascade, priorities or weights are calculated and assigned to rules, so that the results are predictable. Thanks.
data recovery edmonton

santa April 27, 2012 2:31 am  
This comment has been removed by the author.
santa April 27, 2012 2:35 am  

Cascading Style Sheets is a style sheet language used for describing the presentation semantics of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including plain XML, SVG and XUL. Thanks.

Brown Jason July 10, 2013 12:23 am  

I’m impressed, I have to say. Really not often do I encounter a blog that’s each educative and entertaining, and let me inform you, you could have hit the nail on the head. Your thought is excellent; the issue is something that not sufficient individuals are talking intelligently about. I’m very happy that I stumbled throughout this in my search for one thing referring to this.
Catch a cheater

Zheng junxai5 July 20, 2015 12:29 am  

2015-07-20 zhengjx
burberry scarf
coach factory outlet
longchamp pliage pas cher
coach outlet
michael kors outlet
chanel online shop
cheap air max
coach outlet online
louis vuitton sito ufficiale
longchamp pas cher
jordan shoes uk
air max 2015
abercrombie kids
pandora jewelry outlet
jordans for sale
beats headphones
kate spade bags
michael kors outlet
coach outlet store online
ralph lauren polo shirts
pandora charms
mont blanc pens
snapbacks hats
toms shoes for women
rolex watches for sale
gucci handbags
oakley sunglasses sale
gucci borse
tory burch handbags
longchamp le pliage
oakley sunglasses wholesale
burberry sale
chaussure louboutin pas cher
kate spade outlet
michael kors outlet
retro jordans
ray ban outlet
ed hardy uk clothing
ray bans
ralph lauren sale

mmjiaxin November 20, 2015 6:00 pm  

canada goose coats
cheap uggs
ralph lauren polo
miami dolphins
longchamp handbags outlet
tiffany and co
chicago bulls
michael kors handbags wholesale
canada goose outelt
canada goose outelt
coach outlet online
prada outlet online
mulberry outlet store
michael kors outlet
snow boots
air max shoes
puma outlet
air jordan 4
ysl outlet
hermes belt for sale

柯云 December 09, 2015 9:02 pm  

canada goose
oakley store
official coach factory outlet
coach outlet online
michael kors outlet clearance
louis vuitton bags
discount ugg boots
ugg outlet
nike running shoes for men
ugg boots
louis vuitton purses
adidas superstar shoes
michael kors outlet
coach outlet online
christian louboutin shoes
uggs outlet
michael kors outlet online
louis vuitton outlet stores
ugg boots sale
abercrombie fitch
discount jordans
ray ban sunglasses outlet
ugg boots
replica rolex watches
ralph lauren
louis vuitton handbags
gucci outlet
coach outlet online
ralph lauren sale
christian louboutin
cheap ray ban sunglasses
canada goose outlet store
oakley sunglasses wholesale
rolex watches
canada goose sale
michael kors outlet
north face jackets

Libin Huang March 21, 2016 1:11 am  

20160321libincamisetas futbol baratas
michael kors outlet
michael kors wallet
burberry outlet online
longchamp handbags
cheap jordans
michael kors outlet store
swarovski outlet
christian louboutin shoes
lacoste polo shirts
ralph lauren shirts
michael kors outlet
tiffany outlet
nike blazer pas cher
mlb jerseys
hermes bags
swarovski crystal
adidas wings
nike air max 90
ray ban sunglasses
nike air max
michael kors factory outlet
louis vuitton outlet
pandora outlet
cheap jordan shoes
michael kors handbags
lebron shoes
longchamp outlet
jordan shoes 2015
michael kors handbags wholesale
michael kors outlet online
true religion outlet
lebron shoes
nike huarache
michael kors sale

chenlili April 13, 2016 2:39 am  

2016-4-13 xiaobao
fitflop sandals
insanity workout
oakley vault
gucci outlet
ray ban uk
michael kors outlet
nike huarache shoes
louis vuitton
ray ban sunglasses
kate spade handbags
ray bans
michael kors online
louis vuitton bags
jordan retro
coach outlet store online
michael kors outlet
michael kors outlet
true religion outlet
nike air max
kate spade
beats wireless headphones
ray ban wayfarer
ray ban
rolex submariner
polo ralph shirts
cartier watches
louis vuitton outlet
juicy couture
louis vuitton handbags
coach outlet
nike uk
coach outlet store online
michael kors handbags
pandora jewelry
louis vuitton outlet
ray ban sunglasses outlet
kate spade
nike basketball shoes

John May 24, 2016 1:19 am  

hollister clothing store
ray ban sunglasses
air jordans
cheap oakleys outlet
asics shoes
adidas pure boost
nmd adidas
vans outlet
chi flat iron
toms outlet store
bottega veneta
michael kors outlet online
birkenstock shoes
running shoes
rolex watches
ecco shoes
yeezy boost 350 white
hermes uk
coach outlet online
true religion
pandora jewelry
timberland shoes
louis vuitton outlet online
adidas superstars
adidas stan smith
ray ban sunglasses
true religion jeans outlet
ralph lauren pas cher
reebok uk
true religion uk
coach factory outlet
jimmy choo outlet
cheap nike shoes
hermes belt
fitflops sale clearance
ray ban sunglasses

huangqing May 29, 2016 11:05 pm  

burberry outlet store
michael kors handbags sale
true religion outlet
ghd uk
mulberry handbags sale
snapbacks wholesale
cheap ray ban sunglasses
louis vuitton bags cheap
soccer jerseys
michael kors bags
timberland boots
kate spade handbags
ray-ban sunglasses
cheap nba jerseys
michael kors outlet store
louis vuitton outlet online
fitflops sale
ray ban sunglasses
longchamp pas cher
oakley sunglasses uk
michael kors uk outlet
ferragamo outlet
tiffany outlet
hermes outlet store
nike air max 90
michael kors factory outlet
nike roshe run
timberland shoes
tory burch outlet
basketball shoes
michael kors factory outlet
rolex watches
ralph lauren shirts
louis vuitton outlet
coach handbags outlet

Fangyaya July 07, 2016 1:57 am  

"burberry outlet online"
"lebron james shoes"
"rolex watches"
"giuseppe zanotti sneakers"
"coach outlet"
"nike factory outlet"
"cheap oakley sunglasses"
"nike roshe runs"
"pandora jewelry"
"rolex watches"
"insanity workout"
"jordan 8"
"rolex watches outlet"
"louis vuitton bags"
"asics shoes"
"ralph lauren outlet"
"jordan 4"
"oakley outlet"
"polo ralph shirts"
"michael kors outlet"
"nike sb"
"christian louboutin outlet"
"ray ban outlet"
"adidas yeezy"
"retro jordans"
"louboutin pas cher"
"louis vuitton handbags"
"oakley sunglasses"
"hollister clothing"
"adidas yeezy"
"ralph lauren"
"kobe bryant shoes"
"coach outlet"
"air jordans"
"ray bans"
"oakley sunglasses"
"christian louboutin outlet"
"christian louboutin outlet"
"jordans for sale"