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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <header>
  <!-- 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>
  </a>
  
  <!-- navigation -->
  <nav>
    <ul>
      <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>
    </ul>
  </nav>
</header>

<section>
  <figure>
    <img class="main-image" src="https://www.mixd.co.uk/content/themes/mixd-2013/assets/img/wheel.png" alt="Beautiful Form, Perfect Function">
    <figcaption>
      <!-- 
       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>
    </figcaption>
  </figure>
</section>
</body>
</html>
            
          
!
            
              * {
  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;
  }




            
          
!
999px
Loading ..................

Console