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.

            
              <header class="header1" role="banner">
      <h1 class="page-title">
        <a href="#">
        Awesome Recipes
      </a>
      </h1>
      <nav role="navigation">
        <ul>
          <li><a href="#">Home</a></li>
          <li><a href="#">Recipes</a></li>
          <li><a href="#">Videos</a></li>
          <li><a href="#">About</a></li>
          <li><a href="#">Contact</a></li>
        </ul>
      </nav>
    </header>

    <hr>

    <main role="main">
      <section class="featured2">
        <h2>Featured Recipe</h2>
        <a href="#">
          <object data="" type="a/b">
          <a href="#test">Healthy</a>
        </object>
          <img width="300" src="http://placehold.it/307x179" alt="">
          <h3>Blueberry Sour Cream Coffee Cake</h2>
            <time>Mon 26 Sep</time>
        </a>
      </section>

      <hr>

      <section class="recipes1">
        <h2>Recipes</h2>
        <ul>
          <li>
            <a href="#">
              <img width="300" src="http://placehold.it/307x179" alt="">
              <h3>Cajun Chicken Pasta</h3>
            </a>
            <p><a href="#">Healthy</a></p>
          </li>
          <li>
            <a href="#">
              <img width="300" src="http://placehold.it/307x179" alt="">
              <h3>Tuna Noodle Casserole from Scratch</h3>
            </a>
            <p><a href="#">Healthy</a></p>
          </li>
          <li>
            <a href="#">
              <img width="300" src="http://placehold.it/307x179" alt="">
              <h3>Blueberry Sour Cream Coffee Cake</h2>
            </a>
            <p><a href="#">Healthy</a></p>
          </li>
          <li>
            <a href="#">
              <img width="300" src="http://placehold.it/307x179" alt="">
              <h3>Roast Sticky Chicken-Rotisserie Style</h3>
            </a>
            <p><a href="#">Healthy</a></p>
          </li>
          <li>
            <a href="#">
              <img width="300" src="http://placehold.it/307x179" alt="">
              <h3>Spicy Rapid Roast Chicken</h3>
            </a>
            <p><a href="#">Healthy</a></p>
          </li>
        </ul>
      </section>

      <div style="
    display: none;
    background: #7ebdc2;
    padding: 2em;
">
        <img style="
    display: block;
    margin: auto;
    mix-blend-mode: multiply;
    -webkit-filter: brightness(1.1) contrast(1) saturate(0);
" src="http://www.adavvy.com/images/articles/pancake-recipe-makeover.jpg" alt="">
      </div>
    </main>

    <hr>

    <footer role="contentinfo">
      <p>All rights reserved.</p>
    </footer>
            
          
!
            
              @use cssnext;

:root {
  --spacing-unit: 1em;
  --spacing-unit-half: calc(var(--spacing-unit) / 2);
  --brand-color-primary: #7ebdc2;
  --brand-color-primary: #84c27e;
  --brand-color-secondary: color(var(--brand-color-primary) shade(15%));
}

html {
  background: #efe6dd;
}

* {
  box-sizing: border-box;
}

hr {
  margin: 0;
  border: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.75);
}

body {
  max-width: 1000px;
  margin: 0 auto;
  font: 100% / 1.5 'Arial';
  background: #fff;
  padding: var(--spacing-unit-half);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

body:after {
  content: "";
  display: block;
  clear: both;
}

body.is-locked {
  user-select: none;
  -webkit-user-select: none;
}

body.is-locked:before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.edit-mode {
  display: flex;
}

.edit-mode .style-edit {
  flex: 1;
}

.style-edit {
  display: block;
  float: right;
  background: #d8d8d8;
  padding: 1em;
  margin-right: 2em;
}

.style-edit:focus {
  outline: 0;
}

.header1 {
  background: var(--brand-color-secondary);
  color: #fff;
}

.header1 a {
  color: inherit;
  text-decoration: none;
}

.header1 h1 {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  background: var(--brand-color-primary);
}

.header1 nav[role="navigation"] li {
  display: inline-block;
}

.header1 nav[role="navigation"] a {
  display: block;
  padding: 0.5em 1em;
}

.header1 nav[role="navigation"] a:hover {
  background: var(--brand-color-primary);
}

.header2 {
  background: #5d5d5d;
  color: #fff;
  display: flex;
  align-items: center;
}

.header2 a {
  color: inherit;
  text-decoration: none;
}

.header2 h1 {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  background: #231f20;
}

.header2 nav[role="navigation"] li {
  display: inline-block;
}

.header2 nav[role="navigation"] a {
  display: block;
  padding: 0.5em 1em;
  border-bottom: 2px solid transparent;
}

.header2 nav[role="navigation"] a:hover {
  border-bottom-color: #fff;
}

.header3 {
  background: #5d5d5d;
  color: #fff;
}

.header3 a {
  color: inherit;
  text-decoration: none;
}

.header3 h1 {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem;
  background: #231f20;
}

.header3 nav[role="navigation"] ul {
  display: flex;
}

.header3 nav[role="navigation"] li:not(:last-child) {
  border-right: solid 1px rgba(255, 255, 255, 0.3);
}

.header3 nav[role="navigation"] a {
  display: block;
  padding: 0.5em 1em;
}

.header3 nav[role="navigation"] a:hover {
  background: #fff;
  color: #231f20;
}

.header3-2 nav[role="navigation"] li {
  flex: 1;
}

.featured1 {
  background: #efe6dd;
  padding: 1em;
}

.featured1 h2 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.featured1 a {
  text-decoration: none;
  color: inherit;
}

.featured1 a:hover {
  color: #bb4430;
}

.featured1 h3 {
  font-size: 1rem;
  font-weight: bold;
}

.featured1 time {
  font-style: italic;
  opacity: 0.6;
}

.featured1 img {
  border: 4px solid #fff;
}

.featured2 {
  background: #ececec;
  padding: 1em;
  overflow: auto;
}

.featured2 h2 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.featured2 object a {
  background: var(--brand-color-primary);
  color: #fff;
  display: inline-block;
  font-size: 85%;
  padding: 0.35em;
  border-left: 4px solid var(--brand-color-secondary);
  margin-bottom: 1em;
}

.featured2 a {
  text-decoration: none;
  color: inherit;
}

.featured2 a:hover {
  color: var(--brand-color-secondary);
}

.featured2 h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.featured2 time {
  font-style: italic;
  opacity: 0.6;
}

.featured2 img {
  display: block;
  max-width: 100%;
  border: var(--spacing-unit-half) solid var(--brand-color-primary);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.15);
  margin-bottom: 1em;
}

@media (min-width: 40em) {
  .featured2 img {
    float: right;
    width: 60%;
    margin-right: 0;
    margin-left: 1em;
    margin-bottom: 0;
  }
  .featured2 h3 {
    font-size: 2rem;
  }
}

.recipes1 {
  padding: 1em;
}

.recipes1 h2 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.recipes1 li {
  margin-bottom: 1.5em;
}

.recipes1 a {
  text-decoration: none;
  color: inherit;
}

.recipes1 h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.recipes1 p a {
  background: var(--brand-color-primary);
  color: #fff;
  display: inline-block;
  font-size: 85%;
  padding: 0.35em;
  border-left: 4px solid var(--brand-color-secondary);
}

.recipes1 img {
  width: 100%;
  border: var(--spacing-unit-half) solid #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.25);
}

@media (min-width: 40em) {
  .recipes1 ul {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1em;
  }
  .recipes1 li {
    width: 50%;
    padding-left: 1em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (min-width: 70em) {
  .recipes1 li {
    width: 33.33%;
  }
}

.recipes2 {
  padding: 1em;
}

.recipes2 h2 {
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
}

.recipes2 ul {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1em;
}

.recipes2 li {
  width: 50%;
  margin-bottom: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 1em;
}

.recipes2 a {
  text-decoration: none;
  color: inherit;
}

.recipes2 h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.recipes2 p a {
  background: #7ebdc2;
  color: #fff;
  display: inline-block;
  font-size: 85%;
  padding: 0.35em;
  border-left: 4px solid #4e9fa5;
}

.recipes2 img {
  width: 100%;
  border: 6px solid #f3dfa2;
  box-shadow: none;
}

footer {
  padding: 1em;
}
            
          
!
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