CSS Navigation Bar With Background Color Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: left;
}
a {
display: block;
width: 60px;
background-color: #dddddd;
}
</style>
</head>
<body>
<h1> Navigation Bar With Background Color Example </h1>
<p> Here we use Navigation Bar with background color property </p>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</body>
</html>
OUTPUT<html>
<head>
<title> kod4u </title>
<style type="text/css">
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: left;
}
a {
display: block;
width: 60px;
background-color: #dddddd;
}
</style>
</head>
<body>
<h1> Navigation Bar With Background Color Example </h1>
<p> Here we use Navigation Bar with background color property </p>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">News</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">About</a></li>
</ul>
</body>
</html>
No comments:
Post a Comment