Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <main>
    <section class="grid grid-40">
        <div class="grid__item">
            <h1>Hi, I'm Miranda. It's nice to meet yuh.</h1>
        </div>
        <div class="grid__item card">
            <h2 class="card__title">Contact</h2>
            <div class="grid grid-50">
                <a class="grid__item" href="#">Call Me</a>
                <a class="grid__item" href="#">Send Message</a>
            </div>

        </div>
        <div class="grid__item card">
            <h2 class="card__title">Social</h2>
            <div class="grid grid-50">
                <a class="grid__item" href="https://www.linkedin.com/in/washburnmiranda/">LinkedIn</a>
                <a class="grid__item" href="https://www.instagram.com/mirandalwash">Instagram</a>
            </div>
        </div>
        <div class="grid__item">
<img class="gif" alt="nervous gif with smiley faces and a moving border" src="https://mirandawashburn.com/media/gif/nervous.png">
        </div>
   
    </section>


    <section class="grid grid-60">
        <div class="grid__item card">
            <h2 class="card__title">About</h2>
            <p>Front-End Developer | Arizona 🌵</p>
        </div>
        <div class="grid__item card">
            <h2 class="card__title">Latest Creations</h2>
            <div class="textBlock">
                <h3 class="textBlock__title">Funky Retro Text Shadow</h3>
                <a class="textBlock__link" href="https://codepen.io/mirandalwashburn/full/QWELaGp">Check it out >></a>
            </div>
            <div class="textBlock">
                <h3 class="textBlock__title">Old School Landing Page</h3>
                <a class="textBlock__link" href="https://codepen.io/mirandalwashburn/full/QWEWZYZ">See the page >></a>
            </div>
            <div class="textBlock">
                <h3 class="textBlock__title">Neumorphism: Drop Shadows</h3>
                <a class="textBlock__link" href="https://codepen.io/mirandalwashburn/full/bGdvGwR">View the CSS >></a>
            </div>

        </div>
    </section>
  
<p class="absolute"><a href="https://mirandawashburn.com/">mirandawashburn</a></p>
  
</main>



              
            
!

CSS

              
                body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;


  background: #ddd6f3;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #faaca8, #ddd6f3);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #faaca8, #ddd6f3); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
main {
  background: #fff7f1;
  font-family: "Open Sans", sans-serif;
  height: 412px;
  width: 704px;
  margin: 16px 0;
  display: flex;
  position: relative;
  transform:scale(0.88);
}
/*TEXT*/
h1, h2, h3, p {
  color: #545454;
}
/*MEDIA*/
.gif {
  width: 100%;
}
/*CTA*/
a {
  color: #ff4040;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}
/*GRID*/
.grid {
  display: flex;
  padding: 16px;
}
.grid-40,
.grid-60 {
  flex-direction: column;
}
.grid-40 {
  width: 40%;
}
.grid-60 {
  width: 60%;
}
.grid-50 .grid__item {
  width: 50%;
}
/*CARD*/
.card {
  border: 2px solid #ffb8b8;
  border-top: 0 !important;
  margin: 0 0 16px;
}
.card__title {
  background: #ffb8b8;
  font-size: 16px;
  margin: 0 0 0 -2px;
  padding: 8px;
}
.card p {
  font-size: 16px;
  margin: 16px;
}
/*TEXT BLOCK*/
.textBlock {
  margin: 0 16px 24px;
}
.textBlock__title {
  font-size: 16px;
  margin: 16px 0 0;
}
/*ANIMATIONS*/
.gif {
    border: 6px dotted red;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    animation: rotate 1s linear infinite;
}
@keyframes rotate {
0% {
border-color: orange;
}
25% {
border-color: yellow;
}
50% {
border-color: green;
}
75% {
border-color: blue;
}
100% {
border-color: purple;
}
}

@media screen and (max-width: 695px) {
  main {
    flex-direction: column;
    height: unset !important;
    width: calc(100% - 32px);
    margin: 16px;
  }
  .grid-40,.grid-60, grid__item {
    width: calc(100% - 32px);
  }
}

.absolute {
  position: absolute;
  bottom: -40px;
  right: 4px;
  opacity: 0.4;
}
.absolute a {
    text-decoration: none;
  text-transform: lowercase;
  font-style: italic;
}
.absolute a:hover {
    text-decoration: underline;
}
              
            
!

JS

              
                
              
            
!
999px

Console