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

Auto Save

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

              
                <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="style.css">
  <link href="https://fonts.googleapis.com/css2?family=Karla&display=swap" rel="stylesheet">  
  <link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
  
  <title>Frontend Mentor | Single Price Grid Component</title>
</head>
<body>

  <div class="container">
    <div class="top-info">
      <h2>Join our community</h2>
      <h3>30-day, hassle-free money back guarantee</h3>
      <p>Gain access to our full library of tutorials along with expert code reviews.</p>
      <p>Perfect for any developers who are serious about honing their skills.</p>
    </div>
    <div class="bottom-info">
      <div class="bottom-left">
        <h3>Monthly Subscription</h3>
        <h1>&dollar;29</h1> 
        <h4>per month</h4>
        <p>Full access for less than &dollar;1 a day</p>
        <div class="signup-button"><button>Sign Up</button></div>
      </div>
      <div class="bottom-right">
        <h3>Why Us</h3>
        <p>Tutorials by industry experts</p>
        <p>Peer &amp; expert code review</p>
        <p>Coding exercises</p>
        <p>Access to our GitHub repos</p>
        <p>Community forum</p>
        <p>Flashcard decks</p>
        <p>New videos every week</p>
      </div>
    </div>
  </div>

  <footer>
    <p class="attribution">
      Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>. 
      Coded by <a href="https://www.lynne.codes">Lynne Buencamino</a>.
    </p>
  </footer>
</body>
              
            
!

CSS

              
                body {
    background: hsl(204, 43%, 93%);
    font-family: 'Karla', sans-serif;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19)
}

.top-info {
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
}

.top-info h2 {
    color: hsl(179, 62%, 43%);
}

.top-info h3 {
    color: hsl(71, 73%, 54%);
}

.top-info p {
    color: hsl(218, 22%, 67%);
    padding: 4px;
    margin: 0;
}

.bottom-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.bottom-left {
    background: hsl(179, 62%, 43%);
    color: hsl(204, 43%, 93%);
    padding: 10px;
    border-bottom-left-radius: 10px;
    padding-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
}

.bottom-left h1 {
    text-align: left;
    float: left;
    padding: 0;
    margin: 0;
}

.bottom-left h4 {
    transform: translateY(5px) translateX(10px);
    color: hsla(203, 44%, 93%, 0.427);
}

.bottom-left p {
    clear: both;
}

.signup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.bottom-left button {
    background: hsl(71, 73%, 54%);
    color:  hsl(204, 43%, 93%);
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: none;
    box-shadow: 0 8px 20px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.bottom-left button:hover {
    color: hsl(71, 73%, 54%);
    background:  hsl(204, 43%, 93%);
}

.bottom-right {
    background: hsl(180, 47%, 63%);
    color: hsl(204, 43%, 93%);
    border-bottom-right-radius: 10px;
    padding-left: 40px;
    padding-right: 40px;
    padding-top: 30px;
}

.bottom-right p {
    padding: 1px;
    margin: 0;
    color: hsla(203, 44%, 93%, 0.68);
}


@media only screen and (max-width: 375px) {
    .bottom-info {
        display: flex;
        flex-direction: column;
    }

    .bottom-left {
        border-radius: 0;
    }

    .bottom-right {
        border-bottom-left-radius: 10px;
    }
}

.attribution { font-size: 11px; text-align: center; }

.attribution a { color: hsl(228, 45%, 44%); }
              
            
!

JS

              
                
              
            
!
999px

Console