-->
Showing posts with label to create navigation menu. Show all posts
Showing posts with label to create navigation menu. Show all posts

to create navigation menu

---------------------------------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<style>
body
{
padding:0;
margin:0;

}
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: green;
}

li {
  float: left;
}

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

li a:hover {
  background-color: #000;
}
</style>
</head>
<body>

<ul>
  <li><a href="#home">Home</a></li>
  <li><a href="#news">News</a></li>
  <li><a href="#contact">Contact</a></li>
  <li><a href="#about">About</a></li>
</ul>

</body>
</html>