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

              
                .bar
  .header
    .background
    h2 Fulanito Hdz.
    .tag Web Developer & UI Designer
    .location
      i.fas.fa-map-marker-alt &nbsp;
      | Somewhere
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap')
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap')
:root
  --bgColor: #1d2a36
  --accent: #9ab89d
body
  margin: 0
.bar
  font-family: 'Lato', sans-serif
.bar
  width: 350px
  height: 600px
  background-color: var(--bgColor)
.header
  position: relative
  text-align: center
  padding: 10% 20%
  left: 40px
  color: var(--bgColor)
  & *
    position relative
  .background
    position: absolute
    top: -60px
    left: 0
    width: 100%
    height: calc(100% + 60px)
    background-color: var(--accent)
    box-shadow: 5px 5px 24px 1px rgba(0,0,0,0.75);
    transform: skew(0, 15deg)
h2
  font-family: 'Oswald', sans-serif
  font-size: 35px
  margin-bottom: 5px
.tag
  font-size: 23px
.location
  margin: 40px 0
  font-weight: 700
              
            
!

JS

              
                
              
            
!
999px

Console