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

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

              
                h1 The Batman
img.profile src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/38816/bat-mag-layout.JPG"
h4
  span.meta-data 
    i.fa.fa-book
    | 5 September
h1 HOW TO BE BATMAN
p 
  | Becoming Batman is no small feat. First suffering some tramatic event usually helps to get started. For me, my parents died, but you don't have to go to that extreme. Perhaps you lost your favorite blankie as a child or hate the dentist! It is really about conjuring up the anger to fight evil at it's root. The second thing you need to become Batman is a symbol. You have to stand for something, me I'm a bat, but you...you could be anything. It isn't really about the 'symbol' as much as you are more then a man; you're an idea. Lastly, the most important step in becoming batman is to be badass. I personally don't use guns. It's a policy. You should generate your own moral policies in your fight against evil.
hr
h2 MEET THE CREW
.crew-members
  .member
    p Ricky Bobby
    img.thumb src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/38816/bat-mag-layout.JPG"
    p.crew-text This is Ricky Bobby. He is awesome. Don't put a curse on him.
    p.crew-text
      | t: @rickybobby
      <br>
      | f: facebook.com/rickybobby
  .member
    p Ricky Bobby
    img.thumb src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/38816/bat-mag-layout.JPG"
    p.crew-text This is Ricky Bobby. He is awesome. Don't put a curse on him.
    p.crew-text
      | t: @rickybobby
      <br>
      | f: facebook.com/rickybobby
  .member
    p Ricky Bobby
    img.thumb src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/38816/bat-mag-layout.JPG"
    p.crew-text This is Ricky Bobby. He is awesome. Don't put a curse on him.
    p.crew-text
      | t: @rickybobby
      <br>
      | f: facebook.com/rickybobby
h1 @thebatman &copy;2014

  


  


              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Old+Standard+TT)
@import url(https://fonts.googleapis.com/css?family=Roboto)

body
  max-width: 760px
  margin: 0 auto
  padding: 1em 
  font-family: 'Roboto', sans-serif
  font-size: 1.1875em
  line-height: 1.421052632em 

h1, h2, h4, .meta-data
  text-align: center
    
h1 
  font-weight: 900
  font-size: 3em
   
h1:first-of-type
  font-family: 'Old Standard TT', serif
  text-align: right
  color: rgba(0,0,0,0.4)  
  font-size: 1.4em  
  
h1:last-of-type
  margin-top: 4em
  font-size: .7em
  text-align: right
  color: black  
  
h4
  font-weight: normal
  font-size: .8em
 
hr
  height: 10px
  background-color: rgba(0,0,0,.8)
  margin-top: 2.42105263em
  margin-bottom: 1.42105263em
    
p
  -webkit-column-count: 2 /* Chrome, Safari, Opera */
  -moz-column-count: 2 /* Firefox */
  column-count: 2
  
i 
  margin-right: 5px
  color: rgba(0,0,0,.8)

.meta-data
  display: inline-block
  background-color: rgba(231, 76, 60,1.0)
  color: white
  padding: 2px 4px
  
.profile
  display: block
  width: 250px
  height: 250px
  margin: 0 auto
  border-radius: 50% 50% 50% 0
  
.crew-members
  display: flex
    
.member
  border-left: 8px solid rgba(231, 76, 60,1.0)
  flex: 1
  padding-left: .5em
  box-sizing: border-box  
  
  & p
    margin: 0
    padding: 0
    -webkit-column-count: 1
    
  & .thumb
    width: 100px
    height: 100px
    margin: 10px 0
    border-radius: 50% 50% 50% 0
    
  & .crew-text
    font-size: .5em 
    width: 80%
  
@media screen and (max-width: 600px)
  h1
    font-size: 1.4em  
  
  p
    -webkit-column-count: 1
    -moz-column-count: 1
    column-count: 1 
    
  .crew-members
    flex-flow: row wrap
    
  .member
    margin-bottom: 20px
    flex: 1 100%


    
              
            
!

JS

              
                
              
            
!
999px

Console