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

              
                <header class="main-container nav-bar">
 <img loading="lazy" src="https://cdn.builder.io/api/v1/image/assets/TEMP/558f6608975e84484d23cfcb4c3fad695afc65e777d464cc97f49e49f86ff227?apiKey=7e8b177c7c374d8abaf3aebf27f1c17d&" class="logo img" />
 <nav class="nav-container">
  <a href="#" class="link">HOME</a>
  <a href="#" class="link">BLOG</a>
  <a href="#" class="link">COURSES</a>
  <a href="#" class="link">SNIPPETS</a>
 </nav>
 <button class="subscribe-button">SUBSCRIBE</button>
</header>

<div class="hero">
 <header class="header-1">
      <img loading="lazy" src="https://cdn.builder.io/api/v1/image/assets/TEMP/558f6608975e84484d23cfcb4c3fad695afc65e777d464cc97f49e49f86ff227?apiKey=7e8b177c7c374d8abaf3aebf27f1c17d&" class="logo img" />
  <span class="content-1">
   <div class="title-1">Learn Web Development</div>
   <div class="subtitle-1">Master HTML, CSS, and JavaScript</div>
   <div class="description-1">Build Web Applications and Websites</div>
  </span>
 </header>
</div>
              
            
!

CSS

              
                .main-container {
 justify-content: space-between;
 align-items: start;
 border-radius: var(--rounded-box, 0px);
 background-color: #1f1f1f;
 display: flex;
 gap: 20px;
 padding: 30px 60px;
}

.img {
 aspect-ratio: 1.06;
 object-fit: contain;
 object-position: center;
 width: 50px;
 overflow: hidden;
 max-width: 100%;
}

.nav-container {
 justify-content: space-between;
 border-radius: 36px;
 border: var(--rounded-box, 1px) solid #004957;
 background-color: #2a3843;
 align-self: stretch;
 display: flex;
 gap: 20px;
 padding: 16px 32px;
}

.link {
 color: #fff;
 text-align: center;
 letter-spacing: 0.32px;
 font: 600 16px Poppins, sans-serif;
}

.subscribe-button {
 color: #fff;
 text-align: center;
 letter-spacing: 0.32px;
 white-space: nowrap;
 justify-content: center;
 border-radius: 12px;
 border: 1px solid #02d6fe;
 background-color: #1f1f1f;
 align-self: stretch;
 padding: 16px 8px;
 font: 600 16px Poppins, sans-serif;
}

.hero {
 background-color: #fff;
 display: flex;
 flex-direction: column;
/*  padding: 30px 60px; */
}

.header-1 {
 background-color: #1d2028;
 display: flex;
 margin-bottom: 264px;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 padding: 50px 60px;
}

@media (max-width: 991px) {
 .header-1 {
  max-width: 100%;
  margin-bottom: 40px;
  padding: 0 20px;
 }
}

.content-1 {
 display: flex;
 flex-direction: column;
 margin: 48px 0 41px;
}

@media (max-width: 991px) {
 .content-1 {
  margin: 40px 0;
 }
}

.title-1 {
 color: #fff;
 text-align: center;
 white-space: nowrap;
 font: 400 30px Arial, sans-serif;
}

@media (max-width: 991px) {
 .title-1 {
  white-space: initial;
 }
}

.subtitle-1 {
 color: #fff;
 text-align: center;
 margin-top: 24px;
 white-space: nowrap;
 font: 400 20px Arial, sans-serif;
}

@media (max-width: 991px) {
 .subtitle-1 {
  white-space: initial;
 }
}

.description-1 {
 color: #fff;
 text-align: center;
 margin-top: 5px;
 white-space: nowrap;
 font: 400 19px Arial, sans-serif;
}

@media (max-width: 991px) {
 .description-1 {
  white-space: initial;
 }
}

              
            
!

JS

              
                
              
            
!
999px

Console