cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

              <!DOCTYPE html>
<meta charset=utf-8 />
<title>JS Bin</title>
  <!-- logo -->
  <a class="logo" href="index.html">
    <img src="https://www.mixd.co.uk/content/themes/mixd-2013/assets/img/mixd-logo.svg" alt="Mixd Logo">
    <h1>World Class Web Design</h1>
  <!-- navigation -->
      <li><a href='.' class="current fancy-link">Home</a></li>
      <li><a href='about.html'>About</a></li>
      <li><a href='approach.html'>Approach</a></li>
      <li><a href='work.html'>Work</a></li>
      <li><a href='blog.html'>Blog</a></li>
      <li><a href='contact.html'>Contact</a></li>

    <img class="main-image" src="https://www.mixd.co.uk/content/themes/mixd-2013/assets/img/wheel.png" alt="Beautiful Form, Perfect Function">
       LOOK HERE 
      <img src="imgs/line.svg">
      <img src="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjE1MC4yNHB4IiBoZWlnaHQ9IjY4LjAyOXB4IiB2aWV3Qm94PSIwIDAgMTUwLjI0IDY4LjAyOSIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTUwLjI0IDY4LjAyOSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8Zz4NCgk8Y2lyY2xlIGZpbGw9IiNGRkZGRkYiIGN4PSI5LjA0MiIgY3k9IjU2LjM2OSIgcj0iOC43NzYiLz4NCgk8cG9seWxpbmUgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHBvaW50cz0iMTUwLjI2OSwwLjA4OSA5NC42MDIsMC4wMjMgMTYuMzM0LDUxLjYwNiAJIi8+DQo8L2c+DQo8L3N2Zz4=">
      <h1>Beautiful Form, Perfect Function</h1>
      <p>We create beautifully-crafted websites that stand out from the crowd – and perfect function comes as standard.</p>
      <a class="fancy-link" href="approach.html">See how we work</a>
              * {
  margin: 0;
  padding: 0;
body {
  background-color: #34ab00;
  color: #fff;
  font-family: sans-serif;
  font-size: 20px;
  text-transform: uppercase;
a {
  color: #fff;
  text-decoration: none;
/* Header Styling */
header {
  position: relative;
  height: 230px;
  header .logo {
    position: absolute;
    left: 100px;
    top: 125px;
    header .logo h1 {
      font-size: 20px;
      font-weight: normal;
  header nav {
    position: absolute;
    right: 100px;
    top: 170px;
  header nav li {
    display: inline;
    margin-left: 10px;
  header nav a {
    letter-spacing: 4px;

  .fancy-link {
    letter-spacing: 4px;
    border-bottom: 4px solid #fff;
    padding-bottom: 8px;

/* Main Content Styling */
section {
  /* same as margin: 0 100px */
  margin: 100px;
  overflow: hidden;
  /* instead of "section img" */
  section .main-image {
    float: left;
  section figcaption {
    position: relative;
    float: right;
    width: 40%;
  section figcaption img {
    position: absolute;
    top: 35%;
    left: -160px;
  section figcaption h1 {
    font-size: 36px;
    letter-spacing: 3px;
    line-height: 1.3;
    margin-top: 100px;
    margin-bottom: 40px;
    font-weight: normal;
  section figcaption p {
    font-family: georgia, serif;
    line-height: 1.5;
    text-transform: none;
    margin-bottom: 50px;

🕑 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 ..................