How To Make Responsive Blogger Template ,Simple Responsive Blogger Template
How To Make Responsive Blogger Template. ?
Before continue with this process make sure that it requires basic knowledge about HTML5 and CSS3. We only can guide about method to make responsive blogger template. Implementation is totally depend according to your template codes. Means all the class and id vary from template to template so their is not fixed pattern to do this.
First of all open your Blogger Blog >> Then Go to template Section.
Click on Edit HTML and then paste below given meta code just below <head> tag.
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″/>
Now Add Responsive Style sheets search for code which looks like ]]></b:skin>
Then paste paste responsive codes just above it.
Here is the sample of all CSS queries need to make responsive blogger template. you have to paste them and then start add your current classes and id of css for responsiveness.
@media screen and (max-width : 1280px)
{
/* For Size Screen Less than 1280px —*/
/* CSS CODE HERE FOR DESKTOP —*/
}
@media screen and (max-width : 1024px)
{
/* For Size Screen Less than 1024px —*/
/* CSS CODE HERE FOR TABLETS —*/
}
@media screen and (max-width : 768px)
{
/* For Size Screen Less than 768px —*/
/* CSS CODE HERE FOR SMALL TABLETS —*/
}
@media screen and (max-width : 640px)
{
/* For Size Screen Less than 640 —*/
/* CSS CODE HERE FOR IPHONE —*/
}
@media screen and (max-width : 480px)
{
/* For Size Screen Less than 480px —*/
/* CSS CODE HERE FOR SMARTPHONES —*/
}
@media screen and (max-width : 320px)
{
/* For Size Screen Less than 320px —*/
/* CSS CODE HERE FOR SMALL MOBILES —*/
}
Copy and paste the above format and replace /* CSS CODE HERE —*/ for all device with css codes of your all classes and id of Header, Post Body, Sidebar, Footer and other section of your blog.
@media screen tag is for make css responsive for working different screen size.
(max-width : **px) is for maximum width upto which codes will work just like if you place code in the section of 320 it means when the screen size is smaller than 320 then your code will works and if screen size is larger than 320 then it will not works.
But one the other suppose if you place css in size 480 but not in 320 that means code place in 480 works from the Range of Size (0 – 480). But if place any css for same class or id in 320 then CSS codes of 480 will works in range (320 – 480).
Lets See an Example.
@media screen and (max-width: ****px)
{
#wrapper { width:100%; margin:0px auto; }
#header { width:100%; }
#content { margin-right:0; width:100%; float:left; }
#sidebar { display:none; }
#footer { display:none; }
}
Note:- Don’t use same classes, ids and css shown in example. This is just to explain the format become for each media screen. In same way you have done for all sizes.
Use classes and ids which are used in your blogger template for Wrapper, Header, Content, Sidebar, Footer and other small section and then add css codes.
Some Important CSS Queries For Responsiveness.
1. Always use Width in % instead of pixels just like Width:50%; or adjust percentage according to our requirement.
2. Always use em for size instead of px like 10em instead of 10px.
3. Margin:auto; for alignment into center and it using values for margin from left or right then use them in %
4. Display:none; to hide any particular section.
Important Note:- Sometimes while designing a responsive template we may feel that our codes are not working. Actually responsive code will open works if your whole sections width should be in %. For example if make responsive header but not content and sidebar then it will be difficult for you to check weather it is working or not. Because in case if your any section have fixed width then it will don’t lets your code work to show responsiveness.
So the best way is to upload template on testing blog and remove all other sections and then add only responsive to test.
Responsive Design Or Mobile Version ? Which Is Better ?
- Responsive Design are SEO Friendly as compare to separate Mobile version.
- Responsive design adjust itself according to all dimensions Like on Smartphone, Tablet or other devices.
- Responsive Design reduce site loading speed that means your overall performance will increases.
- Responsive Designs also increase your Earnings and you can use responsive adsense ad unit for maximize your earning.
To Check or Test Responsiveness of your design you need tool.
In conclusion, we hope you like this blogging tutorial and learn how to make responsive blogger template. This article is just to explain how responsive codes work but if are not familiar with HTML and CSS then we only suggest you to hire someone to make responsive blogger template.
Source: Safetricks