The "Help" link in the horizontal navigation bar is separated from the left of the navigation links, result is a "split navigation" layout.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 4px;
font-family: Arial, Helvetica, sans-serif;
}
.topnav {
overflow: hidden;
background-color: #036;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Create a right-aligned (split) link inside the navigation bar */
.topnav a.split-right {
float: right;
background-color: #03945E;
color: white;
}
</style>
</head>
<body>
<div class="topnav">
<a class="active" href="#home">Home</a>
<a href="#products">Products</a>
<a href="#services">Services</a>
<a href="#contact">Contact</a>
<a href="#about" class="split-right">Help</a>
</div>
<div style="padding-left:16px">
<h2>Split horizontal Navigation Example</h2>
<p>The "Help" link in the horizontal navigation bar is separated from the left of the navigation links, result is a "split navigation" layout.</p>
</div>
<h2>This is the code source</h2>
<div style="padding:20px; margin:20px; border:thin solid #0C6">
<?php
show_source("split-navigation-bar.php");
?>
</div>
</body>
</html>