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. 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

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

              
                <section class="container">
  <h1>What is it about?</h1>
  <div class="card">
    <div class="card-img">
      <img src="https://raw.githubusercontent.com/Mintbean/Learn-a-bit/main/Projects/ChallengeSet01/Challenge02/images/mintbean-dome.png" alt="Mintbean dome image" />
    </div>
    <div class="card-content">

      <h3>What is learn-a-bit about?</h3>

      <p>Learn-a-bit will teach you the fundamentals through a hands-on approach. You
        will gain versatility in the basic tools of the trade and learn the best
        practices for writing semantic HTML and well-designed CSS. You will improve
        your design skills and start to create attractive and attention-grabbing
        portfolio pieces while also gaining confidence to tackle any of the harder
        hackathons.</p>

      <p>In the end, the first impression and presentation of products
        are the main reason for its success and appeal. Our products represent
        ourselves and our knowledge so we should make it shine in the best light.</p>

      <button type="button">Join a learn-a-bit</button>
    </div>

  </div>

</section>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&family=Viga&display=swap");

html {
  background-color: #4143b1;
  color: #f1fff6;
  font-family: "Rubik", sans-serif;
  line-height: 200%;
  font-size: 12pt;
  box-sizing: border-box;
}

.container {
  width: 100%;
}

h1 {
  color: #5ef4d6;
  text-align: center;
  text-transform: uppercase;
  font-family: "Viga", sans-serif;
  font-weight: normal;
}

h3 {
  text-transform: uppercase;
  font-family: "Viga", sans-serif;
  font-weight: normal;
  font-size: 1.5rem;
}

.card {
  width: calc(100% - 40px);
  margin: 20px auto;
  border: 2px solid #5ef4d6;
  border-radius: 8px;
  background-color: #221727;
}

.card-img img {
  width: 100%;
  height: auto;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-content {
  padding: 30px;
}

button {
  width: 100%;
  text-transform: uppercase;
  padding: 15px;
  font-family: "Rubik", sans-serif;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem;
  background-color: #5ef4d6;
}

              
            
!

JS

              
                
              
            
!
999px

Console