JSFiddle - React, Tailwind, and code Playground
by Rob Sedgwick
HTML
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="navbar">
<a href="terms.php">Terms and Conditions</a>
<a href="disclaimer.php">Disclaimer</a>
<a href="privacy.php">Privacy</a>
<p>
<small>
This website and its content is copyright of TheFishy Ltd - © TheFishy Ltd 2007-2018. All rights reserved.
<small>
</p>
</div>
<div class="main pull-right">
<h1>Bottom Navigation Bar</h1>
<p>Some text some text some text.</p>
</div>
</body>
</html>
CSS
body {
margin: 0;
}
.navbar {
overflow: hidden;
background-color: #333;
position: fixed;
bottom: 0;
width: 100%;
}
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background: #f1f1f1;
color: black;
}
.navbar a.active {
background-color: #4CAF50;
color: white;
}
.navbar p {
color: white;
}
.main {
padding: 16px;
margin-bottom: 30px;
}
.pull-right {
float: right;
}