Top Nav menu bar code for blogger and website

                              Main Top Bar Code

top navigation menu bar can be created using HTML and CSS. Here is an example code snippet for a basic menu bar:

HTML:

<nav>
  <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact</a></li>
  </ul>
</nav>

CSS:

<style>
nav {
  background-color: #333;
  height: 50px;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
}

li {
  float: left;
  height: 100%;
}

a {
  display: block;
  color: white;
  text-align: center;
  padding: 16px;
  text-decoration: none;
}

a:hover {
  background-color: #111;
}
</style>

Other for blogger: 

  <div id='top-bar'>
    <div class='container row'>
        <b:section class='top-bar-nav' id='top-bar-nav' maxwidgets='3' name='Top Navigation' showaddelement='yes'>
          <b:widget id='LinkList76' locked='false' title='Link List' type='LinkList' visible='true'>
            <b:widget-settings>
              <b:widget-setting name='link-3'>https://hangouts.google.com/</b:widget-setting>
              <b:widget-setting name='sorting'>NONE</b:widget-setting>
              <b:widget-setting name='text-1'>Online Source</b:widget-setting>
              <b:widget-setting name='link-1'>https://example.com/p/about_29.html</b:widget-setting>
              <b:widget-setting name='text-0'>Welcome...!</b:widget-setting>
              <b:widget-setting name='link-2'>https://www.google.com/gmail/about/</b:widget-setting>
              <b:widget-setting name='text-3'>Phone: +00000000000</b:widget-setting>
              <b:widget-setting name='link-0'>https://example.com/</b:widget-setting>
              <b:widget-setting name='text-2'>Contact</b:widget-setting>
            </b:widget-settings>
            <b:includable id='main'>
  <b:include name='widget-title'/>
  <b:include name='content'/>
</b:includable>
            <b:includable id='content'>
 <div class='widget-content'>
   <ul>
     <b:loop values='data:links' var='link'>
       <li><a expr:href='data:link.target'><data:link.name/></a></li>
     </b:loop>
   </ul>
 </div>
</b:includable>
          </b:widget>
        </b:section>

Comments

Popular posts from this blog

Office Tool_SPSS v23 + Serial key

How to Fix FATAL error Failed to parse input Document ?

How to Reduce Lazy Load Resources

Popular posts from this blog

Office Tool_SPSS v23 + Serial key

How to Fix FATAL error Failed to parse input Document ?

How to Reduce Lazy Load Resources