badge How to Build Responsive Blogger Template CSS : Advanced Tutorial - ProBlogBooster

How to Build Responsive Blogger Template CSS : Advanced Tutorial

In previous tutorial we have seen what does the mean of Responsive template for blogger and how to start with of. In short; One Design for Multiple Screen: the responsive theme means the design which automatically adjust itself with the width of screen-view or device resolution like for mobile, tablet etc. It is rarely used in case of bloggers because blogger already provided default templates for mobile visitors.

How to Build Responsive Blogger Template CSS Advanced Tutorial - ProBlogBooster

Learn how to build CSS for Responsive blogger template

We have seen how to start to build the CSS in first part; if you are new reader then you really need to read it first to go further. Today we are going to build FULL CSS for our blogger template.

Here we are going to use following CSS and conditional HTML tags
  • @media screen tag used for applying user defined CSS for recognized screen resolution
  • .mobile tag used for deriving CSS for all mobile users
  • <b:if cond="data:blog.isMobile"><b:else/></b:if> tag this tag is specially used for avoiding some HTML <div> for some <body> part for displaying in mobile view.
I'm going to directly give the full CSS for your blogger template. Yeah, offcourse it may vaired with your template, but it may help you to build the same for you. I have made this after trial and error method, varied attempts until I get success. But after lots of work I reached to my goal. You may see how it looks this template in your mobile or if you want to see on desktop you can see it by adding /?m=1 tag after the link.

Full CSS for Responsive blogger template

/* Full CSS for Responsive blogger template  */
/*---------CSS for small screen start---------*/
@media screen and (max-width:300px) { #sidebar-wrapper{display:none;} #container{width:100%;background:none;padding-top:0;} #content-wrapper{width:auto;padding:0 5px;} #mainout-wrapper{width:100%;margin-top:2px;} #main-wrapper{width:100%;padding:0;} #navigation{display:none;} .jump-link,.comment-link,.breadcrumbs{display:none;} }
/*---------CSS for small screen end-------------*/
/*-----------CSS for all Smartphones------------*/
.mobile #header{text-align:left;color:#fafafa;margin:auto;padding:10px;float:left;width:auto;height:auto;margin-top:10px;} .mobile #container{width:100%;background:none;padding-top:0;} .mobile #content-wrapper{width:auto;padding:0 5px;font:13x Droid Serif;} .mobile #mainout-wrapper{width:100%;margin-top:2px;} .mobile #main-wrapper{width:100%;padding:0;} .mobile #navigation{display:none;} .mobile #outer-wrapper{width:100%;margin:0 auto;text-align:$startSide;font:15px Droid Serif;} .mobile,.mobile .comments h4{font:normal 1.6em/120% Georgia, Times, serif;margin:.75em 0 0;} .mobile .post{padding-bottom:10px;} .mobile .post-body{width:100%;font-size:110%;line-height:1.4;position:relative;font:95%/120% Georgia, "Times New Roman", Times, serif;color:#666;padding-bottom:25px;} .mobile .post-header{margin:0 0 1.5em;line-height:1.6;font-size:90%;} .mobile .post-body .tr-caption-container,.mobile .Profile img,.mobile .Image img,.mobile .BlogList .item-thumbnail img{padding:5px;background:#ffffff;color:#666666;} .mobile .post-body img{width:auto;height:auto;} .mobile .post-body .tr-caption-container img{padding:0;background:transparent;border:none;-moz-box-shadow:0 0 0 rgba(0,0,0,.1);-webkit-box-shadow:0 0 0 rgba(0,0,0,.1);box-shadow:0 0 0 rgba(0,0,0,.1);width:100%;height:100%;} .mobile .post-footer{line-height:1.6;font-size:90%;} .mobile .jump-link{display:none;} .mobile .comment-link{display:none;} .mobile .breadcrumbs{display:none;} .mobile #sidebar-wrapper{float:$endSide;padding:0 10px;margin:10px 0 0 10px;width:100%;} .mobile .sidebar{margin-left:5px;padding:0 10px;} .mobile #comment-zone,.mobile .comments,.mobile #gcontainer,.mobile .Cba,.mobile comment-form{width:100%;max-width:99%;margin-right:20px;} .mobile .footer{width:100%;} .mobile #footer-wrapper,.mobile #footer,.mobile .footer,.mobile .footer .widget{width:auto;padding-right:10px;} .mobile #credit{padding-left:10px;}
/* Full CSS for Responsive blogger template  */

If you can NOT able to read it clearly then
you can download high readability CSS file : DOWNLOAD CSS

I have made small changes in making it more adaptive for most of the blogger templates. Use this CSS for your template and if you want re-arrange all tags according to your design code.

Also for making your design more flexible you need to also use conditional HTML tag as described in last post.

Go through this way and share your CSS for all of us so all user may get idea for this Responsive Blogger Template.