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

Auto Save

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

              
                <body>
  <!--image sourced from free-clipart.net, textures from http://www.bettertextures.com/. Both are public domain. Thank You! -->
  <div class="container">
    <div class="image">
      <img src="http://www2.free-clipart.net/gallery/clipart/Crests_And_Emblems/Animals/Dragon__Dragon_2.jpg" alt="Dragon Crest">
    </div>
    
    <div class="title">
      <h1>Welcome Brave Warrior!</h1>
    </div>
    <div class="text">
      <div class="intro">
        <p>Before we enter the arena, we need to do some paperwork. Sadly, no one told the bureaucrats that true warriors don't know how to read.</p>
      </div>

      <div class="form">
       <form>
         <table>
           <tr>
             <td>
              <label for="name" class="left">What name should the ladies (or lads if that is your preference) shout when you claim your victory?</label>
             </td>
             <td>
            <input type="text" name="name"       value="Rawr!" size=40 class="right">
         </td></tr>
          <tr>
             <td>
            <label for="email" class="left">To what email shall we send your fanmail, as well as demands for rematches from your vanquished foes?</label>
               </td>
             <td>
            <input type="text" name="email" value="ifiteyounetime@hotmaul.com" size=40 class="right">
           </td></tr>
          <tr>
             <td>
            <label for="message" class="left">What message do you have for those who would deny your worthiness for this challenge?</label></td class="after">
             <td>
            <textarea name="message" rows="4" cols="50" class="right">Rawr win every time. Rawr smash you for saying Rawr not worthy to fite.</textarea>
         </td></tr>
          <tr>
             <td>
            <label for="submit" class="left"> I have mashed a sufficient number of buttons, I would like to go mash faces now:</label>
            </td>
             <td>
            <input type="submit" name="submit" class="right">
            </td></tr>
         </table>
        </form>
      </div>
    </div>
  </div>
</body>

              
            
!

CSS

              
                /*************
*   Fonts    *
*************/

@import url(https://fonts.googleapis.com/css?family=Roboto:900);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,700);

/*********************
*   Container div    *
*********************/
body {
  background-color: lightpink;
  background-image: url("http://www.bettertextures.com/files/drybrush/drybrush-lightgray.jpg");
}

.container{
  background-color: white;
  padding: 5px;
  width: 75%;
  margin: auto;
  margin-top: 20px;
  overflow: auto;
  border-radius: 15px;
  position: relative:
    display: block;
}


/*************
*   Title    *
*************/

.title {
  font-family: 'Roboto', Sans-Serif;
  font-size: 1.5em;
  display: inline-block;
  max-width: 70%;
  margin: 0 15px;
}

/*************
*   Image    *
*************/

.image{
  display: block;
  float: right;
  margin: 30px 5% 5px 5%;
  max-width: 25%;
}

/************
*   Text    *
************/

.text{
  font-family: Raleway, sans-serif;
  font-size: 1.125em;
  line-height:1.5em;
  max-width: 80%;
  overflow: auto;
  margin-bottom: 15px;
}

/*************
*   Intro    *
*************/

.intro{
  margin: 0px 15px;
}

/************
*   Form    *
************/

.form{
  margin: 0px 15px;
  padding-top: 2px;
  border-top: 1px solid lightgray;
}

.left {
  width: 70%;
}

.right {
  width: 200px;
}

tr {
 haight: 100px 0;
}

/*************
*   @Media   *
*************/

@media screen and (max-width: 1145px) {
  .image{
    display: none;
  }
  
  .text {
    max-width: 100%;
  }
  
  .title{
    max-width: 100%;
    text-align: center;
    font-size: 1.25em;
    margin:auto;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console