Blogspot CSS - Default CSS for blogger


As what I told you long ago on Creating Beautiful MyFunDarkSide Blogspot Template (but now MyFunDarkSide has changed), you can easily modify the CSS rule of Minima template as you please. Moreover this time, I found out there is more we can do with blogger, revealing the global css for blogger. Meaning this CSS is the default code for any blogspot template, which if you choose to put on/off, some changes may/can happens for your blogspot blog.

Here is the short CSS code and the definitions for everyone of them. No template has it all, you can add on one or two and give them your desired rules, so that they will change the look and feel of your blog. You can read the below information like this 'css code you need' - 'meaning/definition'.



Header:
#header-wrapper - the container that wraps your Blog Title and Blog Description.
#header - the container just inside the header-wrapper.
#header h1 - the command inside this containers controls the appearance and layout of your Blog Title.
#header h1 a - controls the properties of the Blog Title as a link text.
#header .description - the properties of your Blog Description.
#header a img - controls the properties of an image inside your header container.

Main and Post:
Main:
#main-wrapper - the container that wraps your Date Header, Blog Posts, Comments, Feed Link, and any widgets that you drag above or below the Blog Posts.
#main - the container just inside the main-wrapper.
#main .widget - controls the properties of all widgets inside the main container.
h2.date-header - sets the properties of your Date Header (just above your Post Title).
.post - sets the properties of your Blog Posts container.
.post h3 - sets the properties of your Post Title.
.post-body p - sets the properties of the body or content of your post.
.post ul - sets the properties of an unordered list (a list that is not numbered).
.post ol - controls the properties of an ordered list (a numbered list).
.post li - controls the properties of the individual list inside an unordered list or an ordered list.
a img - controls the general properties of an image (the a refers to a link; and an image is by itself a link).
blockquote - sets the quoted text in your posts.
code - sets the text contained within the code tags in your posts.
Post-Footer:
.post-footer - sets the overall properties of the post-footer container.
.post-footer-line - sets the properties for each new lines in the post-footer.
.post-footer a - sets the link text properties inside the post-footer.
.post-footer .post-comment-link a - sets the "comment" link inside the post-footer.
#blog-pager - controls the properties of the "newer posts", "home", and "older posts" links.
#blog-pager-newer-link - controls the properties of the "newer posts" link.
#blog-pager-older-link - controls the properties of the "older posts" link.
.feed-links - controls the "Subscribe to: Posts (Atom)" link.

Sidebars:
.sidebar-wrapper - the container that wraps all elements and contents in a sidebar.
.sidebar - the container just inside the sidebar-wrapper.
#sidebar1 - sets the properties inside sidebar1.
#sidebar2 - sets the properties inside sidebar2. If you want the properties inside sidebar1 and sidebar2 to be the same, than you can just the properties inside .sidebar and don't have to even write down the #sidebar1 and #sidebar2 in your CSS code.
.sidebar .widget - controls the properties of all the widgets (the Added Page Element) in your sidebar.
#sidebar1 .widget - only sets the widgets in sidebar1.
.sidebar .BlogArchive - sets the Blog Archive properties. Technically, this is a sidebar widget too, but I'm not sure why setting the properties for sidebar widgets doesn't change any properties for the Blog Archive. That's why I have to write down the .BlogArchive command to set its properties.
.sidebar h2 - sets the title/header properties of a sidebar widget.
.sidebar #BlogArchive1 h2 -sets the properties of the Blog Archive's title.
#Profile1 - sets the properties for the About Me block.
#Profile1 h2 - sets the title/header for the About Me block.
.profile-img a img - sets the image in the About Me block.
.profile-textblock - sets the author description About Me block.
.profile-data - sets the author's data in the About Me block.
.profile-datablock - sets the overall blocks of data in the About Me block.

Comments:
#comments - sets the overall comment container's properties.
#comments a - sets the link text properties inside a comment container.
#comments h4 - sets the header of the comment container.
.deleted-comment - sets the properties of the deleted comment.
.comment-author - sets the properties of the comment author.
.comment-body p - sets the comment body properties.
#comments ul - controls the unordered list inside a comment container.
#comments li - controls the individual list inside a comment container.

Footer:
#footer-wrapper - the container that wraps all elements and contents inside a footer section.
#footer - the container just inside the footer-wrapper.
#footer h2 - sets the properties of the footer title/header.
#footer .widget - controls the footer widget properties.
.footer a - controls any footer link texts.

PS: I stole this from this post entitled 'Starting Your Own Blogger Template'. There are 8 tutorial posts available. Have a look.

PSS: Here is other guide, pdf of the default understanding of CSS structure and html layout for blogspot called Blogger's Cheat Sheet by bTemplates.


You can see how my blog archive now has that scrollbar just by applying .sidebar .BlogArchive (yes you will need to put on open { and close } command by yourself.
eg:  .sidebar .BlogArchive {
                    height:300px; 
                    overflow-y:scroll;
                    }

You may start playing with this CSS now. As this is all CSS only, you don't need to Expand Widget Template and please be sure to backup your template first before proceed with any changes/css play.

9 comments:

  1. There are some quality design site which are sample show in this site. You can submit fresh site 
    css theme

    ReplyDelete
  2. Its great article that you have shared and thanks for sharing the information that you have shared.
    Professional seo Company in Dindigul | Logo Design company in Erode

    ReplyDelete
  3. Jain Technosoft is a leading web design company in Bangalore, is dedicated towards providing quality IT solutions which can transform businesses across various verticals.
    Real Estate Web Designing in Bangalore | Web Development Company

    ReplyDelete
  4. Best SEO Services Affordable Packages and Prices - SEO Experts in coimbatore, chennai Tamil Nadu, India Search engine Optimization Company

    ReplyDelete
  5. Very cool,I am just starting to learn about search engine optimization,so I am reading every article I can find,thank you very much for sharing yoursSEO Experts Bangalore | SEO Consultant Bangalore

    ReplyDelete
  6. It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us Web Designing Company Bangalore | Website Designing Company Bangalore

    ReplyDelete