Saturday, December 10, 2016

Horizontal Scrolling Menu For Blogger Mobile Site



Mobile screen being small can't hold a wide horizontal menu so people add vertical menu for mobile site specially bloggers do so but there is a simple way of install a horizontal menu in blogger mobile site that is making a scrollable menu so it will show some tabs of the menu and others can be seen by touching and scrolling. As you know that almost everyone is now using a touch screen mobile so it is a good menu for your mobile site. So in this post I am going to share 4 different types of horizontal scrolling menus. Follow below steps to add any of the menu in your blog's mobile site.


Live Demo (Open In Mobile For Best Experience)

How To Add Horizontal Scrolling Menu For Blogger Mobile Site?

Step 1: Go to blogger and open Layout.

Step 2: Add a gadget just above your "Blog Posts Gadget" as shown in below image and click on Html/Javascript.

how-to-add-code-in-blogger

how to add a gadget in blogger

Note: If you are not able to add gadget above Blog Posts then simply add it in sidebar and drag it above Blog Posts because its important to keep it there

Step 3: Copy code of desired menu from below and paste it into Html/Javascript window you just opened in step 2.

Simple Scrollable Nav Without Logo.


<style>
.nav-scroll {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    position: relative;
}
.nav-scroll a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}
.nav-scroll a:hover {
    background-color: #777;
}
</style>
<div class="nav-scroll">
  <a href="https://www.blogger.com">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
  <a href="#support">Support</a>
  <a href="#blog">Blog</a>
  <a href="#tools">Tools</a>
  <a href="#base">Base</a>
  <a href="#custom">Custom</a>
  <a href="#more">More</a>
  <a href="#logo">Logo</a>
  <a href="#friends">Friends</a>
  <a href="#partners">Partners</a>
  <a href="#people">People</a>
  <a href="#work">Work</a>
</div>

Horizontal Scroll Nav With Scrollable Logo.

horizontal-nav-with-scrolling-logo-mobile-blogger

<style>
.nav-scroll {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    position: relative;
}
.nav-scroll a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}
.nav-scroll a:hover {
    background-color: #777;
}
.nav-scroll img {
    width: 100px;
    float: left;
    height: 48px;
    background: #fff;
}
</style>
<div class="nav-scroll">
<img alt="logo" src="https://www.servicetrade.com/wp-content/uploads/2016/04/your-logo-here.png"/>
  <a href="https://www.blogger.com">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
  <a href="#support">Support</a>
  <a href="#blog">Blog</a>
  <a href="#tools">Tools</a>
  <a href="#base">Base</a>
  <a href="#custom">Custom</a>
  <a href="#more">More</a>
  <a href="#logo">Logo</a>
  <a href="#friends">Friends</a>
  <a href="#partners">Partners</a>
  <a href="#people">People</a>
  <a href="#work">Work</a>
</div>


Horizontal Scroll Nav With Fixed Logo On Left.

horizontal-nav-with-logo-mobile-blogger

<div class="nav-mob">
<img alt="brand" id="brand" src="https://www.servicetrade.com/wp-content/uploads/2016/04/your-logo-here.png"/>
<div class="nav-scroll">
  <a href="https://www.blogger.com">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
  <a href="#support">Support</a>
  <a href="#blog">Blog</a>
  <a href="#tools">Tools</a>
  <a href="#base">Base</a>
  <a href="#custom">Custom</a>
  <a href="#more">More</a>
  <a href="#logo">Logo</a>
  <a href="#friends">Friends</a>
  <a href="#partners">Partners</a>
  <a href="#people">People</a>
  <a href="#work">Work</a>
</div></div>
<style>
#brand {
    position: static;
    float: left;
    width: 105px;
    height: 50px
}
.nav-scroll {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    position: relative
}
.nav-scroll a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none
}
.nav-scroll a:hover {
    background-color: #777;
}
.nav-scroll img {
    width: 100px;
    float: left;
    height: 48px;
    background: #fff
}
.nav-mob {
    position: relative;
}
</style>



Horizontal Scroll Nav With Fixed Logo On Top.

horizontal-nav-with-fixed-logo-on-top-mobile-blogger

<div class="nav-mob">
<div id="slogo">
<img alt="logo" src="https://www.servicetrade.com/wp-content/uploads/2016/04/your-logo-here.png" /></div>
<div class="nav-scroll">
  <a href="https://www.blogger.com">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
  <a href="#about">About</a>
  <a href="#support">Support</a>
  <a href="#blog">Blog</a>
  <a href="#tools">Tools</a>
  <a href="#base">Base</a>
  <a href="#custom">Custom</a>
  <a href="#more">More</a>
  <a href="#logo">Logo</a>
  <a href="#friends">Friends</a>
  <a href="#partners">Partners</a>
  <a href="#people">People</a>
  <a href="#work">Work</a>
</div></div>
<style>
.nav-mob {
    position: relative;
}
#slogo img {
    float: none;
width:100px
}
#slogo {
    position: static;
    width: 100%;
    text-align: center;
    padding: 2px 0px;
    background: #eaeaea
}
.nav-scroll {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
    position: relative
}
.nav-scroll a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none
}
.nav-scroll a:hover {
    background-color: #777
}
.nav-scroll img {
    width: 100px;
    float: left;
    height: 48px;
    background: #fff
}
</style>

Step 4: Save the gadget and note its ID or name it so that you can find it in your template for next steps.

Read: How To Find ID Of A Widget In Blogger

Step 5: Go to template and click on Edit Html.

how-to-add-edit-html-in-blogger

Step 6: Find your "Mobile Nav Gadget" in your template you just added in above steps with the help of its ID or name using Ctrl + F on your keyboard. You can directly jump to your gadget also.

how-to-search-blogger-template

Step 7: After finding the gadget copy below piece of code and paste it after locked='false' as shown in below image:

mobile="only"

how-to-show-a-gadget-in-blogger-mobile-view


Step 8: Save your template and again go to Blogger > Template > Mobile.

How-to-optimize-blogger-blogs

Step 9: Change Default template to Custom and click on Save.
mobile-templates-blogger-101helper

That's it. Now open your mobile site in your mobile to see your menu working.

I hope you liked this tutorial, for more menu tutorials go to Blogger menus

Thanks for visiting 101Helper, Share this tutorial with others.

Search Keywords: Horizontal Scrolling Menu For Blogger Mobile Site, menu for blogger mobile site,pure css menu for blogspot blog,how to add css,javascript menu in blogger mobile view,101helper menus for blogger,blogging tutorials.

Friday, December 2, 2016

How To Add HTML Tables In Blogger Posts

HTML tables are simple tables which gives a summery of something and are mostly used by those bloggers who own blogs about money so they show there content e.g info about ad networks in the form of tables. But not all bloggers know how to add HTML tables in blog posts and blogger does not have any option to create HTML tables so it can be added only manually. And that's actually the reason of writing this post. In this post I will share with you how to create an HTML table and add it in your blog posts. I will show you only simple one because there are a number of types of HTML tables and I can't share each and every type of HTML table so I will share a simple HTML table with text Like this!So lets get started!

How To Add HTML Table In Blogger Posts?

Step 1: Copy code of HTML table from below:

<style>
#mytable{
width:100%
}
#mytable, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
#mytable th, #mytable td {
    padding: 5px;
    text-align: left;
}
</style>
<table id="mytable">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th>
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

Step 2: Go to blogger > Posts > Edit a post Or Create a new post.

Step 3: Switch to Html view of the post editor and paste the copied code after a certain text or in the beginning of the post or after an image, where ever you want to show your HTML table in the post.

how to switch to HTML editor In blogger.png

Step 4: Make changes according to your choices and publish your post to see your HTML table.

Understanding The HTML Table Code:
html table blogger


After adding above code for HTML Table, you need to make changes in the text and the table code and for that you need to understand the code because without it you can't add a new row in your table and can't add custom info in the rows and columns of your table. so read out below to know what the code is doing.

Here is the CSS code of your table:

<style>
#mytable{
width:100%
}
#mytable, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}
#mytable th, #mytable td {
    padding: 5px;
    text-align: left;
}
</style>

It gives your table the borders for each row and column and if you want, you can add your own decorations to your table for example to add a background color you need to add this:

background: yellow;

You have to add above piece of code in this part of code:

#mytable{
width:100%;
background: yellow;
}

Now its time to make changes in the info which is added in your table's row and columns. Here is the overall code for your table:

<table id="mytable">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

In this code blue one is the first row of your table, orange is the second, green is the third and yellow is the fourth row of your table. Now you can change text according to your choices.

To add a new row you need to add a simple piece of code below the yellow one, here is the simple piece of code that is need to be added for new row:

<tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>

For more HTML tables visit w3schools. Or search for online HTML table generator and create one for you.

I hope you found this post helpful. If you have any question ask me in comments or contact me. Thanks for visiting 101Helper.

Search Keywords: How to add HTML Table in blogger posts, html tables with rows and columns for blogger, how to add html table in blogger with CSS style, show content in table form in blogger posts.