<html> <head> <style type='text/css'> body { padding: 0 0 0 0; margin: 0 0 0 0; } .fixedNavBar { position: fixed; top: 0; background-color: silver; width: 100%; white-space: nowrap; } .content { margin-top: 30px; } </style> </head> <body> <div class='fixedNavBar'>This is my navigation bar</div> <div class='content'> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nulla nisi, porttitor at auctor non, tincidunt vel magna. Pellentesque condimentum molestie nibh sit amet lacinia. Donec nisl mi, dapibus lacinia scelerisque vitae, gravida a quam. Integer vel risus lorem. Vestibulum ut ante elit. Maecenas rutrum mattis nisl nec fringilla. Ut molestie felis a turpis auctor sed ultrices neque fringilla. </p> </div> </body> </html>