Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="wrapper">
  <header class="hdr">
    <div class="main-heading">
      <h1 class="main-heading__content">The Big Lebowski
        <strong>A Film By Joel & Ethan Coen</strong>
      </h1>
    </div>    
    <nav class="nav">
      <ul class="nav-list">
        <li class="nav-list__item">
          <img src="https://64.media.tumblr.com/c6e433630ede9e34eb99c1e8ebde8e92/b4489e03a31e87d3-d0/s250x400/7a9aa442a8939690f2acd0ecdd81f7bbdb2e34f3.png" 
               alt="Icon of The Dude, main character in The Big Lebowski movie." 
               class="nav-list__item-icon">
          <span>The Dude</span>
        </li>
        <li class="nav-list__item">
          <img src="https://64.media.tumblr.com/e7a6216f70eb0c4667bfaaf18764bdc0/dc1ada64aca71b28-18/s250x400/d14185155733be58b9d090beb3eaaf9cc6d7b04c.png" 
               alt="Icon of Walter Sobchak, main character in The Big Lebowski movie." 
               class="nav-list__item-icon">
          <span>Walter Sobchak</span>            
        </li>
        <li class="nav-list__item">
          <img src="https://64.media.tumblr.com/6a6ee50e198ef1453e9f4e93a9f0f92f/a04bcfdffdc6bcbb-09/s250x400/f38c16fa048a31816955a691da0c275839271069.png" 
               alt="Icon of Donny Kerabatsos, main character in The Big Lebowski movie." 
               class="nav-list__item-icon">
          <span>Donny Kerabatsos</span
        </li>
      </ul>
    </nav>
  </header>
  <section class="bowling-section">
    <figure class="bowling-feature">
      <img src="https://64.media.tumblr.com/94dab7b90d5b0ed113cecc5543068976/9ff488c84485c265-ab/s540x810/3975b7011349ae329c3a0435b7a23a2d6a502845.jpg" 
           alt="The Dude, Donny and Walter at the bowling club." 
           class="bowling-feature__img">
      <figcaption class="bowling-feature__caption">
        <a href="#" class="bowling-feature__caption-txt">Over The Line!</a>
      </figcaption>
    </figure>
  </section>
  <section class="opinion-section">
    <article>
      <h2>Yeah, Well, You Know, That's Just, Like, Your Opinion, Man</h2>
      <p>Look, let me explain something to you. I'm not Mr. Lebowski. You're Mr. Lebowski. I'm the Dude. So that's what you call me. That, or His Dudeness … Duder … or El Duderino, if, you know, you're not into the whole brevity thing.</p>
      <p>Nobody calls me Lebowski. You got the wrong guy. I'm The Dude, man.</p>
      <p>Look, let me explain something to you. I'm not Mr. Lebowski. You're Mr. Lebowski. I'm the Dude. So that's what you call me. That, or His Dudeness … Duder … or El Duderino, if, you know, you're not into the whole brevity thing.</p>
      <p>I do mind, the Dude minds. This will not stand, ya know, this aggression will not stand, man.</p>
    </article>
  </section>
  <section class="rug-section">
    <figure class="rug-feature">
      <img src="https://64.media.tumblr.com/49dac4f03646fb0af324965e204a89bf/9a8d2168708847d2-4b/s540x810/5b5de297fc07657fa6b81bf31146f06dc32a2252.jpg" 
           alt="The Dude lying on his back listening to music." 
           class="rug-feature__img">
      <figcaption class="rug-feature__caption">
        <a href="#" class="rug-feature__caption-txt">That Rug Really Tied The Room Together</a>
      </figcaption>
    </figure>
  </section>
  <aside class="the-dude-abides">
    <article>
      <h2>The Dude Abides</h2>
      <p>Way out west there was this fella... fella I wanna tell ya about. Fella by the name of Jeff Lebowski. At least that was the handle his loving parents gave him, but he never had much use for it himself. Mr. Lebowski, he called himself "The Dude". Now, "Dude" - that's a name no one would self-apply where I come from.</p>
      <p>But then there was a lot about the Dude that didn't make a whole lot of sense. And a lot about where he lived, likewise. But then again, maybe that's why I found the place so darned interestin'. They call Los Angeles the "City Of Angels." I didn't find it to be that, exactly. But I'll allow there are some nice folks there.</p>
      <p>The Dude abides. I don't know about you but I take comfort in that. It's good knowin' he's out there. The Dude. Takin' 'er easy for all us sinners.</p>
    </article>
  </aside>
  <footer class="visit-the-dude">
    <div>
      <h3 class="full-name">Jeffrey Lebowski</h3>
      <address>
        <p class="address">
          606 Venezia Avenue</br>
          Venice</br>
          California
        </p>      
      </address>
    </div>
    <div>
      <img src="https://64.media.tumblr.com/6e4a7fddc00c8147c89860deed432967/e91b9415ca6439bf-d7/s400x600/d3e8c447d176a5ae795ad114325e2e4c96659db4.png" 
           alt="Icon image of a pin and a bowling ball" 
           class="bowling-icon">
    </div>
    <div class="social">
      <h3>Let's Go Bowling!</h3>
      <ul class="social__list">
        <li>
          <img src="https://64.media.tumblr.com/da558723fdc3c2d6bfdb8f228c384189/0f2bdef7796a205b-5e/s250x400/5f1cfbac4c2f4578c2fb2a90f19875b7f0bb795a.png" 
               alt="Icon of a drink" 
               class="social__icon">
        </li>
        <li>
          <img src="https://64.media.tumblr.com/c9a9097112df4abbd766b0708703aea0/3d0226a849068842-c4/s250x400/514771222cc935f763b8e986f2f111422dfebe74.png" 
               alt="Icon of a rug" 
               class="social__icon">
        </li>
        <li>
          <img src="https://64.media.tumblr.com/ef75765fce3ac82a5f5655cba1b23527/2e933fb00b494bbf-b0/s250x400/01406cd234c953f3f8a48114ac7c9deb53e0e5f1.png" 
               alt="Icon of a bowling ball" 
               class="social__icon">
        </li>
      </ul>  
    </div>
  </footer>
</div>
              
            
!

CSS

              
                /* Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

/* Colors */
$background: #996600;
$primary-01: #993333;
$primary-02: #CC9933;
$secondary-01: #663333;
$secondary-02: #F58446;
$txt-dark: #222222;
$txt-light: #EEEEEE;
$caption: rgba(238, 238, 238, 0.6);

/* Generic styles */
html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body { 
  font-family: 'Nunito', Helvetica, sans-serif;
  color: $txt-dark;
  background-color: $background;
  margin: 0;
  padding: 0;
}

header, 
section, 
aside, 
footer {
  border-radius: 10px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;  
}

figure {
  margin: 0;
  padding: 0;
}

span {
  width: 100%;
  padding: 0 1vw;
}

.wrapper {
  display: grid;
  gap: 0.5%;
  width: 90vw;
  max-width: 1200px;
  margin: 0.5rem auto;
}

/* Custom styles - mobile first */

/* header with navigation */
.hdr {
  display: grid;
  grid-template-columns: 35vw 45vw;
  background-color: $primary-01;
  color: $txt-light;
  padding: 1rem;
}

.main-heading { 
  grid-column: 1/2;
  
  &__content {
    font-size: 12vw;
    writing-mode: vertical-rl;
    margin: 1rem;
    
    & strong {
      display: block;
      font-size: 40%;
      opacity: 0.85;
    }
  }
}

.nav {
  grid-column: 2/3;
  padding: 1rem 2rem 1rem 0;
  
  &-list {
    display: grid;
    gap: 1rem;
    
    &__item {
      display: grid;
      grid-template-columns: minmax(10px, 1fr);
      gap: 5px;
      justify-items: center;
      text-align: center;
      
      &-icon {
        width: 66%;
        transition: transform .7s ease-in-out;

        &:hover {
          transform: rotate(360deg);
          cursor: pointer;
        }        
      }
    }
  }
}

/* sections */
.bowling-section, .rug-section {
  background-color: $secondary-01;
  color: $txt-light;
  transition: transform .2s ease-in-out;
  padding: 1rem;
  
  &:hover {
    cursor: pointer;
    transform: scale(1.01);  
  }
}
  
.bowling-feature, .rug-feature {
  display: grid;
  grid-template-columns: minmax(10px, 1fr);
  grid-template-rows: repeat(3, auto);  
    
  &__img {
    grid-column: 1/2;
    grid-row: 1/3;
    width: 100%;
    border-radius: 10px;
  }

  &__caption {
    grid-column: 1/2;
    grid-row: 2/3;
    background-color: $caption;
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    border-radius: 0 0 10px 10px;

    &-txt {
      display: block;
      color: $txt-dark;
      text-decoration: none;
      padding: 01rem;       
    }
  }
}

.opinion-section {
  background-color: $primary-02;
  padding: 1rem;
}

/* aside */
.the-dude-abides {
  background-color: $secondary-02; 
  padding: 1rem;
}

/* footer */
.visit-the-dude {
  display: grid;
  grid-template-columns: 55% 45%;
  place-items: center;
  background-color: $primary-01;
  color: $txt-light; 
  text-align: center;
  padding: 1rem;
}
  
.full-name, .address {
  margin: 0.5rem 0;
}

.bowling-icon {
  width: 50%;
  margin: 1rem 0;
}
  
.social {
  grid-column: span 2;
  margin: 2rem 0;

  &__list {
    display: grid;
    grid-auto-flow: column;
    align-content: center;
  }

  &__icon {
    width: 50%;
    transition: transform .7s ease-in-out;

    &:hover{
      transform: rotate(360deg);
      cursor: pointer;
    }
  }
}

/* Media queries */
@media (min-width: 550px) {
  /* header with navigation */
  .hdr {  
    grid-template-columns: minmax(10px, 1fr);
  }
  
  .main-heading { 
    grid-column: auto;
    
    &__content {
      font-size: 2.6rem;
      writing-mode: initial;
    }
  }
  
  .nav {
    grid-column: auto;
    padding: 0;
    
    &-list {
      grid-template-columns: repeat(3,  minmax(10px, 1fr));
      
      &__item-icon {
        width: 80%;
      }
    }
  }
    
  /* footer */
  .visit-the-dude {
    grid-template-columns: repeat(3,  minmax(10px, 1fr));
    padding: 0 1rem;
  } 
  
  .bowling-icon {
    width: 50%;    
  }
  
  .social {
    grid-column: auto;
    
    &__icon {
      width: 70%;
    }
  }
}

@media(min-width: 768px) {
  .wrapper {
    grid-template-columns: 45% 55%;
    grid-template-rows: auto;
    grid-template-areas:
      "hdr      hdr"
      "abides   abides"
      "bowling  opinion"
      "rug      opinion"
      "visit    visit";
    gap: 1.5%;
  }
  
  /* header with navigation */
  .hdr {
    grid-area: hdr;
    background-color: transparent;
    padding: 0;
  }
  
  .nav-list {
    margin: 0;  
    
    &__item {
      grid-template-columns: 33% 66%;
      place-items: center;
      place-content: start;
      background-color: $primary-01;
      margin: 1vw 0;
      padding: 1vw;
      border-radius: 1rem;
      text-align: inherit;
    
      &:hover {
        cursor: pointer;
        background-color: $secondary-01;
        transition: all 0.4s;
        transform: scale(1.03);      
      }
      
      &-icon {
        max-width: 48px;
      }
    }
  }

  /* sections */
  .opinion-section {
    grid-area: opinion;
  }

  .bowling-section {
    grid-area: bowling;
    padding: 1vw;
  }

  .rug-section {
    grid-area: rug;
    padding: 1vw;
  }

  /* aside */
  .the-dude-abides {
    grid-area: abides;    
  }

  /* footer */
  .visit-the-dude {
    grid-area: visit;
  } 
}

@media (min-width: 1080px) {
  .wrapper {
    grid-template-columns: repeat(3,  minmax(10px, 1fr));
    grid-template-areas:
      "hdr      hdr      hdr"
      "opinion  bowling  abides"
      "opinion  rug      abides"
      "visit    visit    visit";
    gap: 1.5%;
  }
  
  /* header with navigation */
  .hdr {
    grid-template-columns: repeat(3,  minmax(10px, 1fr));
    grid-template-areas:
      "nav nav main-heading";
    align-items: center;
    gap: 1.5%;
  }
  
  .main-heading {
    grid-area: main-heading;
    
    &__content {
      font-size: 2.4rem;
      margin: 0;
    }
  }
  
  .nav {
    grid-area: nav;
    
    &-list__item {
      margin: 0;
    }
  }
  
  /* footer */
  .visit-the-dude {
    padding: 0 1vw;
  }
  
  .bowling-icon {
    max-width: inherit;
  }
    
  .social {
    margin: 0;
    
    &__list {
      max-width: 50%;
      margin: 0 auto;
    }
    
    &__icon {
      width: 100%;
      padding: 0 0.5rem;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console