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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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.about
  .container
    .headline
      h2.headline__head.headline__head--mb ABOUT US
      span.headline__description.headline__description--mb Proin iaculis purus consequat sem cure.
    .about__wrapper
      .about__item
        .about__text-wrapper
          h3.about__text-head
            | <span>JULY 2010</span> Our Humble Beginnings
          p.about__text-description
            | Proin iaculis purus consequat sem cure digni ssim. Donec porttitora entum suscipit aenean rhoncus posuere odio in tincidunt. Proin iaculis purus consequat sem cure digni ssim. Donec porttitora entum suscipit.
        img(src="https://pbs.twimg.com/media/C-BhfomXsAA_cHb.jpg:large", alt="").about__img.about__img--ml
        
      .about__item.about__item--reverse
        .about__text-wrapper
          h3.about__text-head
            | <span>JULY 2010</span> Our Humble Beginnings
          p.about__text-description
            | Proin iaculis purus consequat sem cure digni ssim. Donec porttitora entum suscipit aenean rhoncus posuere odio in tincidunt. Proin iaculis purus consequat sem cure digni ssim. Donec porttitora entum suscipit.
        img(src="https://pbs.twimg.com/media/C-BhfomXsAA_cHb.jpg:large", alt="").about__img.about__img--mr

    
              
            
!

CSS

              
                body
  font-family: 'Times New Roman'


.container
  width: 100%
  max-width: 900px
  margin: 0 auto

.headline
  text-align: center
  &__head
    font-size: 40px
    line-height: 40px
    font-family: Arial
    color: #222
    &--mb
      margin-bottom: 10px
  &__description
    font-size: 16px
    color: #777
    &--mb
      margin-bottom: 10px
  
.about
  
  &__wrapper
    padding: 0 15px
    margin-top: 30px
  &__item
    display: flex
    width: 100%
    margin-bottom: 50px
    
    &--reverse
      flex-direction: row-reverse
    
  &__text-wrapper
    max-width: 35%
    width: 100%
  &__img
    max-width: 150px
    width: 50%
    height: 150px
    border-radius: 50%
    border: 7px solid #f1f1f1
    &--ml
      margin-left: 45px
    &--mr
      margin-right: 45px
              
            
!

JS

              
                
              
            
!
999px

Console