css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <html>
  <head>

  </head>
  <body>
    <header>
      <h1> Caitlin Palmer-Bright</h1>
      <nav>
        <ul>
          <li><a href="#About">About</a></li>
          <li><a href="#Portfolio">Portfolio</a></li>
          <li><a href="#Contact">Contact</a><li>
      </nav>
              <h4> A coder in training!</h4>

    </header>
      <div id="main"><div id="about"><h3 id="firstPara"><a name="About">About meeeeee</a></h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec interdum at metus eget ultricies. Nunc viverra ante est, in vestibulum nisl finibus eget. Duis elementum quam nec metus ornare, eget lacinia velit lacinia. Sed ac tortor vehicula, faucibus felis nec, elementum nulla. Fusce et orci ut mi volutpat tempus quis eu sem. Pellentesque vestibulum ut nisl quis tincidunt. Nam porta mi iaculis libero efficitur congue. Pellentesque eu scelerisque sem, id euismod nunc. Sed enim metus, iaculis in varius posuere, vulputate at sem. Curabitur gravida tortor at vulputate pellentesque. Aenean viverra lacus nulla, sit amet rutrum quam semper non. Donec eget tristique nisl. Nam est libero, ultricies at erat vel, maximus semper ante. Duis accumsan nibh quis nisi porta iaculis.

Suspendisse dignissim tellus sed dui fermentum rhoncus. Pellentesque maximus pulvinar lorem, pharetra sodales sapien placerat quis. Aenean vehicula vel turpis a tempor. Phasellus lobortis velit nulla, non molestie felis congue et. Aenean euismod erat quis libero molestie lobortis. Quisque faucibus sit amet eros nec accumsan. Aenean vel diam ipsum. Vestibulum mattis cursus mi, non blandit mi volutpat id. Maecenas luctus ex vel ipsum finibus fringilla. Pellentesque viverra consequat ante, in tempor quam. Vivamus volutpat posuere volutpat. Sed at fermentum enim. Morbi augue quam, euismod id ullamcorper vel, sagittis scelerisque tortor.

        </p>
      </div>
      <div><h3><a name="Portfolio">Stuffs I has Done!</a></h3>
        <p> Proin massa metus, lobortis et vulputate a, iaculis in tellus. Integer efficitur eros est, non euismod massa dictum lacinia. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc ultricies, purus sed lobortis placerat, justo erat dictum felis, id vestibulum velit mi sit amet nisl. Donec at elementum diam, eu interdum libero. Cras dictum placerat urna ut posuere. Nullam fermentum, ligula ut sagittis porta, lorem diam vehicula nulla, a cursus nisi sapien ut est. Etiam faucibus lorem libero, eget molestie tellus dignissim mollis. Duis lobortis, tellus sit amet accumsan vestibulum, nibh leo cursus nibh, ut auctor eros neque eu magna. Nam mattis leo nec porttitor scelerisque. Etiam purus dolor, laoreet sed est in, efficitur varius tortor. Sed condimentum tortor diam, in vehicula arcu facilisis id. Suspendisse turpis sem, efficitur eu ex at, auctor dapibus mauris.

Nulla sed lacinia magna, eu euismod ligula. Fusce vitae ligula scelerisque, feugiat libero eget, ultrices lorem. Integer mattis feugiat felis, imperdiet tempus nisl convallis fermentum. Nam sagittis est urna. Ut sed neque quis libero tincidunt sodales. Aliquam a sollicitudin quam. Nulla interdum augue vitae urna rutrum finibus. Sed facilisis ligula enim, ut hendrerit arcu consequat nec. In placerat hendrerit lectus in bibendum. Curabitur et magna id massa vulputate accumsan in quis mauris. Cras aliquam libero hendrerit tincidunt scelerisque. Ut eget rhoncus sem. Donec tempor maximus erat sed posuere. Pellentesque feugiat ac elit at fringilla. Suspendisse eu massa gravida, facilisis dolor eget, sagittis ex. Morbi ut nunc ac quam bibendum vestibulum in nec nibh.

Nam sed molestie massa. Suspendisse nulla sapien, dictum quis molestie posuere, semper ut arcu. Nam vehicula lacus nec aliquet sodales. Maecenas eget pellentesque purus, at sodales lacus. Fusce vitae aliquam metus. Fusce sollicitudin tortor eu leo dignissim, suscipit vehicula augue accumsan. Maecenas blandit, nunc tristique hendrerit dignissim, risus nibh malesuada dolor, eu vulputate elit purus eget diam. Duis id massa non dui vehicula aliquam. Nunc magna lectus, dictum non lectus in, ornare tristique metus. Nullam consectetur ex libero, sagittis convallis velit rutrum a.
        </p>
      </div>
      <div><h3><a name="Contact">Talk to me!</a></h3>
        <p> Proin massa metus, lobortis et vulputate a, iaculis in te
        </p>
      </div>
        </div>
  </body>
</html>
            
          
!
            
              body {
  margin: 0;
  background: #ccc;
  font-family: Verdana, Geneva, sans-serif; 
}

header {
    height:80px;
    background: teal;
    border:1px solid #CCC;
    margin:0px auto;
  position: fixed;
  top: 0px;
  width: 100%;
}
h1{
  background-color: skyblue;
  display: block;
  margin-left: 20px;
}
h4{
  background-color: beige;  
  margin-left: 20px;
}
nav ul {
      list-style-type: none;
      background-color: indigo;
      text-align: center;
      padding: 0;
      margin: 0;
      float: right;
    }

#firstPara{
  margin-top:140px;
}
#main{
  background-color: lightsteelblue;
  width: 80%;
  margin: auto;
  padding: 20px;
}
.mainsection{
  width: 80%
    margin: 30px auto;
}
nav ul li {
   display: inline-block;
  width: 100px;
  
}
h3{
 text-align: center; 
}
li a:link, a:visited {
    background-color: indigo;
    color: white;
    padding: 14px 25px;
    text-align: center; 
    text-decoration: none;
    display: inline-block;
}

li a:hover, a:active {
    background-color: purple;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console