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

              
                // A translation of this magazine layout:
// http://i1.wp.com/learningdesignin10months.com/wp-content/uploads/2015/12/upload3.jpg?resize=654%2C463

// I used CSS columns for the text and a responsive font-sizing technique (on the heading and lead) that uses CSS viewport width (vw) units to control the text
// at different viewport widths. 

header
  h1 Follow<br> your<br> heart

  h2.lead Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates itaque, ullam consequatur sint iure voluptatum veniam eaque dolorem accusamus natus quia odit vitae facilis alias omnis, dolore, ea a voluptatibus inventore reiciendis illum minima distinctio! Similique dolore delectus deleniti velit eius quis doloribus, explicabo officiis, sunt error sapiente tenetur id cumque voluptatem laborum ab odit atque cupiditate corrupti consectetur perspiciatis dolorem earum placeat. Eos harum, odit dolorem deserunt molestiae quae ducimus sit vero dolor, commodi ipsam. Excepturi officia, assumenda illum nisi.

  article
    p.heading-inverse Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id doloremque rem tenetur nisi eum nulla. Asperiores cum molestiae laborum delectus aliquid quo distinctio beatae veritatis illum.
    
    p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus inventore hic officiis molestias sed rem facilis neque, dolorem perferendis.
    
    p.heading-inverse Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id doloremque rem tenetur nisi eum nulla.
    
    p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates.
    
    p.heading-inverse Lorem ipsum dolor sit amet, consectetur adipisicing elit. Id doloremque rem tenetur nisi eum nulla. Asperiores cum molestiae laborum delectus aliquid quo distinctio beatae veritatis illum. Iusto beatae cum nisi.
    
    p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus.

  
main
  article
    p.text-indented Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus inventore hic officiis molestias sed rem facilis neque, dolorem perferendis. Rem laborum voluptates laboriosam impedit distinctio pariatur corporis dolores dolore ratione autem veritatis maxime fuga, quidem odio nulla deleniti reiciendis ipsum ex ea accusantium libero aspernatur totam! Sapiente maxime, minima magnam culpa aspernatur reprehenderit a, repudiandae unde esse obcaecati, odit.

    p.heading Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates, ipsa.

    p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus inventore hic officiis molestias sed rem facilis neque, dolorem perferendis. Rem laborum voluptates laboriosam impedit distinctio pariatur corporis dolores dolore ratione autem veritatis maxime fuga, quidem odio nulla deleniti reiciendis ipsum ex ea accusantium libero aspernatur totam! Sapiente maxime, minima magnam culpa aspernatur reprehenderit a, repudiandae unde esse obcaecati, odit.

    p.text-indented Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus inventore hic officiis molestias sed rem facilis neque, dolorem perferendis. Rem laborum voluptates laboriosam impedit distinctio pariatur corporis dolores dolore ratione autem veritatis maxime fuga, quidem odio nulla deleniti reiciendis ipsum ex ea accusantium libero aspernatur totam! Sapiente maxime, minima magnam culpa aspernatur reprehenderit a, repudiandae unde esse obcaecati, odit.

    p.heading Lorem ipsum dolor sit amet, consectetur adipisicing elit. Similique commodi suscipit ad fuga voluptatibus ab inventore repellat nostrum, quibusdam nisi, optio, deserunt deleniti impedit doloremque velit dolore totam quos? Ex!

    p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum fuga minima suscipit, sapiente molestiae atque? Tempora autem possimus sunt optio, consectetur explicabo in officia est iste totam quidem voluptatum dolorem nulla voluptates. Illo et mollitia eligendi tenetur porro quasi minus excepturi eveniet, dolor illum quas, alias, numquam rerum. Nemo possimus inventore hic officiis molestias sed rem facilis neque, dolorem perferendis. Rem laborum voluptates laboriosam impedit distinctio pariatur corporis dolores dolore ratione autem veritatis maxime fuga, quidem odio nulla deleniti reiciendis ipsum ex ea accusantium libero aspernatur totam! Sapiente maxime, minima magnam culpa aspernatur reprehenderit a, repudiandae unde esse obcaecati, odit. 
              
            
!

CSS

              
                body
  margin: 0
  
  
p
  margin: 0
  font-size: 18px
  line-height: 1.3
  font-family: 'Lato', sans-serif
  
.text-indented
  text-indent: 30px
  
header
  background: #EF5350
  padding: 60px 30px
  
  h1
    margin: 0
    font-size: 25vw
    text-transform: capitalize
    letter-spacing: -3px
    line-height: .9
    margin-bottom: 30px
    font-family: 'Mukta Vaani', sans-serif
    
  @media (min-width: 500px)
    h1
      font-size: 20vw
      line-height: .8
    
  @media (min-width: 690px)
    h1
      font-size: 15vw
        
  // @media (min-width: 0px)
  //   h1
  //     font-size: 15vw
  //     line-height: .8
    
main
  padding: 40px 60px 60px
    
article
  column-count: 3
  column-width: 300px
    
.lead
  font-size: 6vw
  font-weight: bold
  // column-span: all
  line-height: 1
  // letter-spacing: -1px
  font-family: 'Mukta Vaani', sans-serif
  
@media (min-width: 375px)
  .lead
    font-size: 5vw
    line-height: 1.2
    
@media (min-width: 500px)
  .lead
    font-size: 4vw
  
@media (min-width: 690px)
  .lead
    font-size: 2.5vw
  
.heading,
.heading-inverse
  font-weight: bold
  // letter-spacing: -1px
  line-height: 1.3
  margin-top: 1em
  margin-bottom: 0
  font-size: 1em
  // font-family: "Trebuchet MS", Helvetica, sans-serif
  
.heading-inverse
  color: rgba(white, 0.7)
  
.heading
  color: rgba(#EF5350, 0.9)
  
    

              
            
!

JS

              
                
              
            
!
999px

Console