Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <!DOCTYPE html>
        <title>Navigation bar DEMO</title>
        <link rel="stylesheet" href="style.css">
           <img src=""
                    <li><a href="#Game Info">Game Info</a></li>
                    <li><a href="#Dinos">Dinos</a></li>
                    <li><a href="#Kibble">Kibble</a></li>
                    <li><a href="#Design">Design</a></li>
                    <li><a href="#Survival Basics">Survival Basics</a></li>
  <center><h1>  </h1>
            <center><p>Text </p>


                header img {
    height: 50px;
  margin-left: 40px

body {
    height: 125vh;
    background-size: cover;
    font-family: sans-serif;
  margin-top: 80px;
  padding: 30px;
  height: 100%;
  background-repeat: no-repeat;

/* Simply make the height 100px on an image to get the full image to display*/
/* add background-repeat: no-repeat; to make only one image be on the page, and not an infinite repeating amount. */

header {
    background-color: white; position: fixed; top: 0;
left: 0;
  right: 0;
  /* the part below changes the size vertically of the nav bar, the white part.*/
  height: 80px;
  display: flex;
  align-items: center;
  /* This part below creates a very faint, but pleasing, shadow under the nav bar. */
  box-shadow: 0 0 25px 0 black;}

/* The order above 0 0 25px 0 black. x-offset, y-offset, blur, spread, color.*/
header *{
  display: inline;
header li{ 
margin: 20px;}

header li a
{color: black;
text-decoration: none;}

h1{ color: gold;}

main{ color: black;}