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

              
                <!--

πŸŽ‰ INSTRUCTIONS:
Using this basic markup, style the buttons. Each button has a specific class corresponding to the prompt. Add CSS to each class to style the buttons independently. Pick a promt that sounds interesting to you and go to town!

❌ Some restrictions:
- You can mess around with the markup and the CSS but try to keep what's there already.
- Only use Vanilla CSS ☝️

🎨 Get creative with it and share with us your button styles!

-->


<main class="main">
	<div class="main__container">
    <button class="button button--arrow" type="button">Button
	</button>
          
		<button class="button button--change-text" type="button">Button
	</button>
    
		<button class="button button--fill-animation" type="button">Button
	</button>
    
		<button class="button button--3d" type="button">Button
	</button>
    
		<button class="button button--realistic-button" type="button">Button
	</button>
    
		<button class="button button--gradient-animation" type="button">Button
    </button>
    
    <button class="button button--faux-border" type="button">Button
    </button>
    
    <button class="button button--border-image" type="button">Button
    </button>
    
    <button class="button button--whatever" type="button">Button
    </button>
	</div>
</main>
              
            
!

CSS

              
                /* Base button styles */
.button {
  appearance: none;
  border: none;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

.button:active {
  color: black;
}

/* 1. on a state change, display an arrow */
.button--arrow {

}

/* 2. on a state change, change the text inside the button */
.button--change-text {
  
}

/* 3. on a state change, create a fill shape animation */
.button--fill-animation {
  
}

/* 4. go 3D! */
.button--3d {
  
}

/* 5. style a button that looks physically real */
.button--realistic-button {
  
}

/* 6. on a state change, create an animation using a gradient */
.button--gradient-animation {
  
}

/* 7. creat a button with a border that does not use the border property */
.button--faux-border {
  
}

/* 8. use border-image */
.button--border-image {
  
}

/* 9. USE YOUR DANG IMAGINATION!!! */
.button--whatever {
  
}


/*  ------------------------------------------------- */
/* Base pen styles */

body {
	margin: 0;
	font-family: system-ui, sans-serif;
}

.main {
	width: 100%;
}

.main__container {
  width: 80%;
  padding: 6rem 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 6rem;
  grid-row-gap: 6rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console