HTML Jframe and Drop Down Menu

 <!DOCTYPE html>

<html>

<head>

<style>

iframe:focus {

  outline: none;

}

iframe[seamless] {

  display: block;

}

.navbar {

  overflow: hidden;

  background-color: #333;

}


.navbar a {

  float: left;

  font-size: 16px;

  color: white;

  text-align: center;

  padding: 14px 16px;

  text-decoration: none;

}


.dropdown {

  float: left;

  overflow: hidden;

}


.dropdown .dropbtn {

  font-size: 16px;  

  border: none;

  outline: none;

  color: white;

  padding: 14px 16px;

  background-color: inherit;

  font-family: inherit;

  margin: 0;

}


.navbar a:hover, .dropdown:hover .dropbtn {

  background-color: orange;

}

.dropdown-content {

  display: none;

  position: absolute;

  background-color: #f9f9f9;

  min-width: 160px;

  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);

  z-index: 1;

}

.dropdown-content a {

  float: none;

  color: black;

  padding: 12px 16px;

  text-decoration: none;

  display: block;

  text-align: left;

}

.dropdown-content a:hover {

  background-color:orange;

}

.dropdown:hover .dropdown-content {

  display: block;

}

</style>

</head>

<body>

<div class="navbar">

  <a href="#home">Home</a>

  <a href="https://javascriptcodeprograms.blogspot.com/  target">Contacts</a>

  <div class="dropdown">

    <button class="dropbtn">Javascript 

      <i class="fa fa-caret-down"></i>

    </button>

    <div class="dropdown-content">

      <a href="https://javascriptcodeprograms.blogspot.com/2021/04/javascript-switch-case-samples-and.html" target="iframe1">Switch</a>

      <a href="https://javascriptcodeprograms.blogspot.com/2021/04/javascript-code-change-button.html" target="iframe1">Events</a>

      <a href="https://javascriptcodeprograms.blogspot.com/2021/04/change-body-background-onload.html" target="iframe1">onLoad </a>

    </div>

  </div> 

<div class="dropdown">

    <button class="dropbtn">HTML 

      <i class="fa fa-caret-down"></i>

    </button>

    <div class="dropdown-content">

      <a href="https://htmlcodeprograms.blogspot.com/2021/04/html-code-horizontal-navigation-bar.html" target="iframe1">Horizontal </a>

      <a href="https://htmlcodeprograms.blogspot.com/2021/04/html-2-columns-responsive-layout.html#PRODUCTS" target="iframe1">2 Columns</a>

      <a href="https://htmlcodeprograms.blogspot.com/2021/04/css-layout-3-rows-3-columns-grid.html" target="iframe1">3 Columns </a>

      <a href="https://javascriptcodeprograms.blogspot.com/2021/04/change-body-background-onload.html" target="iframe1">onLoad </a>

    </div>

  </div> 

</div>

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

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

 <iframe name ="iframe1" src="https://javascriptcodeprograms.blogspot.com/" width="100%" height=600px> 

 </iframe>

<iframe name ="iframe2" src="https://simple.wikipedia.org/wiki/Main_Page" noframe width="100%" height=100px>  </iframe>

  <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