SlideShare a Scribd company logo
<html>
<head>
<link rel="stylesheet" href="sbox.css">
<style>
nav{}
.navbar {
width:100%;
background-color: #00c1c1;
font-family: Arial, Helvetica, sans-serif; position:fixed;
}
.navbar a {
float: left;
font-size: 20px;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
overflow: hidden;
list-style-position: fixed;
}
.dropdown {
float:left;
overflow: hidden;
}
*{margin:0px;
padding:0px;}
.dropdown .dropbtn {
cursor: pointer;
font-size: 20px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: inherit;
margin: 0;
}
.navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus {
background-color:#019090 ;
}
.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: #ddd;
}
.show {
display: block;
}
</style>
</head>
<body bgcolor="#f8f8f8">
<div id=header>
<nav>
<div class="navbar">
<img src="aa.png" style="float:left; height:100px;"><br><br><br>
&nbsp; &nbsp;
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#home">Buy</a>
<div class="dropdown">
<button class="dropbtn" onclick="myFunction()">Products
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content" id="myDropdown">
<a href="#">Asus</a>
<a href="#">Acer</a>
<a href="#">Apple</a>
<a href="#">Dell</a>
<a href="#">Lenovo</a>
<a href="#">Hewllett-Packard</a>
</div>
</div>
<a href="#customercare">Customer Care</a>
<div align="right" class="search-box-wrapper">
<input type="text" placeholder="Search..." class="search-box-input">
<button class="search-box-button">&#128269; </button>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(e) {
if (!e.target.matches('.dropbtn')) {
var myDropdown = document.getElementById("myDropdown");
if (myDropdown.classList.contains('show')) {
myDropdown.classList.remove('show');
}
}
}
</script>
</div>
<br>
</p>
</body>
</html>

More Related Content

TXT
Horario
DOCX
City life project by ajay mishra121
ODP
HTML5 Boilerplate - PV219
PDF
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
PDF
LessCSS Presentation @ April 2015 GTALUG Meeting
PDF
響應式網頁實作坊
PDF
Work and play with SASS & Compass
Horario
City life project by ajay mishra121
HTML5 Boilerplate - PV219
CSS Quick Reference / Cheat Sheet - Scott DeLoach, ClickStart
LessCSS Presentation @ April 2015 GTALUG Meeting
響應式網頁實作坊
Work and play with SASS & Compass

Similar to Geektop (9)

PPTX
Drupal Omega and Responsive Build out
KEY
Sass Why for the CSS Guy
PDF
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
KEY
FCIP SASS Talk
PDF
Dropdown Menu or Combo List.pdf
DOCX
Creating a vertical link
PDF
Class 3 create an absolute layout with css abs position (aptana)
PDF
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
PPTX
BITM3730 9-26.pptx
Drupal Omega and Responsive Build out
Sass Why for the CSS Guy
HTML5 and CSS3 – exploring mobile possibilities - Dynabyte event
FCIP SASS Talk
Dropdown Menu or Combo List.pdf
Creating a vertical link
Class 3 create an absolute layout with css abs position (aptana)
Mobile-first OOCSS, Sass & Compass at BBC Responsive News
BITM3730 9-26.pptx
Ad

Recently uploaded (20)

PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT
Mechanical Engineering MATERIALS Selection
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
DOCX
573137875-Attendance-Management-System-original
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Well-logging-methods_new................
PPTX
Artificial Intelligence
PPT
Project quality management in manufacturing
PPTX
Current and future trends in Computer Vision.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CH1 Production IntroductoryConcepts.pptx
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Mechanical Engineering MATERIALS Selection
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
bas. eng. economics group 4 presentation 1.pptx
573137875-Attendance-Management-System-original
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
R24 SURVEYING LAB MANUAL for civil enggi
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Well-logging-methods_new................
Artificial Intelligence
Project quality management in manufacturing
Current and future trends in Computer Vision.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Ad

Geektop

  • 1. <html> <head> <link rel="stylesheet" href="sbox.css"> <style> nav{} .navbar { width:100%; background-color: #00c1c1; font-family: Arial, Helvetica, sans-serif; position:fixed; } .navbar a { float: left; font-size: 20px; color: white; text-align: center; padding: 14px 16px; text-decoration: none; overflow: hidden; list-style-position: fixed; } .dropdown { float:left; overflow: hidden; } *{margin:0px; padding:0px;} .dropdown .dropbtn { cursor: pointer; font-size: 20px; border: none; outline: none; color: white; padding: 14px 16px; background-color: inherit; font-family: inherit; margin: 0; } .navbar a:hover, .dropdown:hover .dropbtn, .dropbtn:focus { background-color:#019090 ; } .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;
  • 2. } .dropdown-content a:hover { background-color: #ddd; } .show { display: block; } </style> </head> <body bgcolor="#f8f8f8"> <div id=header> <nav> <div class="navbar"> <img src="aa.png" style="float:left; height:100px;"><br><br><br> &nbsp; &nbsp; <a href="#home">Home</a> <a href="#about">About</a> <a href="#home">Buy</a> <div class="dropdown"> <button class="dropbtn" onclick="myFunction()">Products <i class="fa fa-caret-down"></i> </button> <div class="dropdown-content" id="myDropdown"> <a href="#">Asus</a> <a href="#">Acer</a> <a href="#">Apple</a> <a href="#">Dell</a> <a href="#">Lenovo</a> <a href="#">Hewllett-Packard</a> </div> </div> <a href="#customercare">Customer Care</a> <div align="right" class="search-box-wrapper"> <input type="text" placeholder="Search..." class="search-box-input"> <button class="search-box-button">&#128269; </button> </div> <script> /* When the user clicks on the button, toggle between hiding and showing the dropdown content */ function myFunction() { document.getElementById("myDropdown").classList.toggle("show"); } // Close the dropdown if the user clicks outside of it window.onclick = function(e) { if (!e.target.matches('.dropbtn')) { var myDropdown = document.getElementById("myDropdown"); if (myDropdown.classList.contains('show')) { myDropdown.classList.remove('show'); } }