HTML CODE HORIZONTAL NAVIGATION BAR RESPONSIVE WEB DESIGN LAYOUT

 <!DOCTYPE html>

<html>

<head>

<style>

ul {

  list-style-type: none;

  margin: 0;

  padding: 0;

  overflow: hidden;

  background-color: #333;

}


li {

  float: left;

  border-right:1px solid #bbb;

}


li:last-child {

  border-right: none;

}


li a {

  display: block;

  color: white;

  text-align: center;

  padding: 14px 16px;

  text-decoration: none;

}


li a:hover:not(.active) {

  background-color: #111;

}


.active {

  background-color: #4CAF50;

}

</style>

</head>

<body>


<ul>

  <li><a class="active" href="#home">Home</a></li>

  <li><a href="#news">News</a></li>

  <li><a href="#contact">Contact</a></li>

  <li style="float:right"><a href="#about">About</a></li>

</ul>


<div style="padding:1px 16px;height:1000px; WIDTH=100%">

  <h2 id="home"> HOME Fixed Full-height Side Nav</h2>

  <hr size=5 color=#000>  

  <h3>Try to scroll this area, and see how the sidenav sticks to the page</h3>

  <p>Notice that this div element has a left margin of 25%. This is because the side navigation is set to 25% width. If you remove the margin, the sidenav will overlay/sit on top of this div.</p>

  <p>Also notice that we have set overflow:auto to sidenav. This will add a scrollbar when the sidenav is too long (for example if it has over 50 links inside of it).</p>

  <p id="news">News</p>

  <img src="radialsymmetry.gif" alt="dogs" width= 100% height =550 valign="middle" ></img> 

  <p id="contact">Contacts</p>

  <hr size=5 color=#000> 

  

  <p>FACEBOOK  </p>

  <p>INSTAGRAM  </p>

  <p>YOUTUBE </p>

   <p>FACEBOOK  </p>

  <p>INSTAGRAM  </p>

  <p>YOUTUBE </p>

  <p>FACEBOOK  </p>

  <p>INSTAGRAM  </p>

  <p>YOUTUBE </p>

  

    <p id=about> About </p>

  <hr size=5 color=#000> 

  <p>TEAM PROFILE </p>

  <p>BUSINESS PROCESS</p>

  <P>MISSION /VISION /PHILOSOPHY </P>

  <p>Some text..</p>

  <p>Some text..</p>

 <p>Some text..</p>

 <p>Some text..</p>

 <p>Some text..</p>

 <p>Some text..</p>


</div>


</body>

</html>


Comments

Popular posts from this blog

First HTML Program