CSS Navigation Bar With Display Example :
<!DOCTYPE html>
<html>
<head>
<title> kod4u </title>
<style type="text/css">
li {
display: inline;
}
</style>
</head>
<body>
<h1> Navigation Bar With Display Example </h1>
<p> Here we use Navigation Bar with display inline 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">
li {
display: inline;
}
</style>
</head>
<body>
<h1> Navigation Bar With Display Example </h1>
<p> Here we use Navigation Bar with display inline 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