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

              
                <div id="reactCard" />
              
            
!

CSS

              
                html, body
  height: 100%
  
body
  background: #333
  display: flex
  justify-content: center
  align-items: center
  font-family: Helvetica Neue
  
h1
  font-size: 1em
  padding-bottom: 0.5em
  color: black
  text-align: left
  letter-spacing: 0.1em
  font-weight: bold
  
h2
  font-size: 0.75em
  letter-spacing: 0.05em
  line-height: 1.5em
  color: #9a9a9a
  text-align: left
p
  font-size: 0.75em
  text-align: left
  color: #aaa
  
.fa
  font-size: 1.5em
  
input
  background-color: rgba(0,0,0,0.0)
  padding: 1em 0em 1em 1em 
  font-family: FontAwesome "Open Sans"
  box-sizing: border-box
  width: 100%
  border: 1px solid #cecece
  border-radius: 4px
  margin-bottom: 0.75em
  margin-top: 0.5em
  
form
  background-color: rgba(0, 0, 0, 0.0)
  margin: 1em 0em 1em 0em
  
  
.cardContainer
  background-color: rgba(255, 255, 255, 1)
  padding: 1em
  width: 20em
  height: 20em
  display: flex
  justidy-content: center
  align-items: center
  flex-direction: column
  
.tabContainer
  background-color: rgba(0,0,0,0.15)
  height: 3em
  width: 100%

.card
  background-color: rgba(255, 255, 255, 1)
  border-radius: 4px
  padding: 2em 2em 1em 2em 
  height: auto
  width: 20em
  
.btn--submit
  background-color: #33b6cb
  color: white
  font-weight: bold
  margin-top: 2em
  height: 4em
    

.signup-choices-title
  background-color: rgba(0, 0, 0, 0.0)
  display: flex
  justify-content: space-between
  align-items: center
  height: 2em
  margin: 1em 0em
  
  
.half-line
  height: 1px
  background: #cecece
  width: 25%
  
.signup-choices
  display: flex
  flex-direction: row
  align-items: center
  justify-content: space-between
  background-color: rgba(0, 0, 0, 0.0)
  .choice-container
    border: 1px solid #cecece
    border-radius: 4px
    height: 3em
    width: 30%
    display: flex
    justify-content: center
    align-items: center
    background-color: rgba(0, 0, 0, 0.0)

              
            
!

JS

              
                class ReactCard extends React.Component {
  constructor(){
    super();
  }
  render() {
    return (
      <div className="card">
        <h1>TRY ALL THESE FEATURES FREE</h1>
        <h2>Get started today, no downloads or credit card required.</h2>
        <form>
          <input type="text" placeholder="First Name"/>
          <input type="text" placeholder="Last Name"/>
          <input type="text" placeholder="Email"/>
          <input type="text" placeholder="Password"/>
          <input type="submit" placeholder="Submit Button" className="btn--submit"/>
          <div className="signup-choices-title">
            <div className="half-line" />
            <p>Or SignUp with</p>
            <div className="half-line" />
          </div>
          <div className="signup-choices">
            <div className="choice-container" id="facebook">
              <i className="fa fa-facebook"></i>
            </div>
            <div className="choice-container" id="twitter">
              <i className="fa fa-twitter"></i>
            </div>
            <div className="choice-container" id="github">
              <i className="fa fa-github"></i>
            </div>
          </div>
          
        </form>
      </div>
    )
  }
}

React.render(<ReactCard />, document.getElementById('reactCard'));
              
            
!
999px

Console