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

              
                <link href='https://fonts.googleapis.com/css?family=Bad+Script' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
    <script src= "https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>

<div class="col-lg-12 col-md-12" ng-app="" 
ng-init="firstName='Shaik';
         lastName='Maqsood';
         place='India';
         profession='Web Developer';
         company='Capgemini';
         message='Today I am making this Pen to show you a cool way to make a Contact page which looks like a Hand written Letter. You can go ahead and change the contents in the Text boxes to change the content in the Letter. How did I do it? Angular JS.';
         email='shaikmaqsood001@gmail.com'">
    <div class="col-lg-6 col-md-6 col-sm-6 topgap">

    <center style="font-family: 'Lobster', cursive;">
        <h1>Contact Me</h1>
    </center>

    <table width="100%">
      <tr>
        <td>
            <label for="firstName">First Name:</label>
            <input type="text" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please Enter your First Name" ng-model="firstName" required/>
        </td>
        <td>
            <label for="lastName">Last Name:</label>
            <input type="text" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please Enter your Last Name" ng-model="lastName" required/>
        </td>
      </tr>
      
      <tr>
        <td>
            <label for="email">Email ID:</label>
            <input type="email" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please enter your Email ID" ng-model="email" required/>
        </td>
        <td>
            <label for="place">Country:</label>
            <input type="text" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please enter your Country" ng-model="place" required/>
        </td>
      </tr>
      <tr>
        <td>
            <label for="company">Company:</label>
            <input type="text" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please enter your Comapany Name" ng-model="company" required/>
        </td>
        <td>
            <label for="profession">Profession:</label>
            <input type="text" class="form-control col-lg-3 col-md-3 col-sm-3 col-xs-3" placeholder="Please enter your Profession" ng-model="profession" required/>
        </td>
      </tr>

      <tr>
        <td colspan="2">
            <label for="message">Message:</label>
            <textarea class="form-control" rows="5" id="message" ng-model="message"></textarea>
        </td>
      </tr>
    </table>
    
    <button type="button" class="btn btn-danger btn-block buttonSubmit">WHAT DOES THIS BUTTON DO??</button>
    </div>

    <div class="col-lg-6 col-md-6 col-sm-6">
        <div class="paper">
          <div class="lines">
            <div class="Lettertext" spellcheck="false">
              Hello Curious Cat, <br /><br />
              This is {{ firstName+" "+lastName }}. I am from {{place}}. 
              <br/><br/>
              I am a {{profession}}, working in {{company}}.
              <br/><br/>
              {{message}}
              <br/><br />
              Like my Work?  Share your Love, gimme a heart &#9829;&#9829;&#9829; <br />
              You can reach me back on {{email}}.
              <br/><br/>
              Thanks and Regards,<p>{{ firstName+" "+lastName }}
            </div>
          </div>
        </div>
    </div>
</div>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  background: lightgoldenrodyellow;
}
.paper {
  position: absolute;
  height: 550px;
  width: 450px;
  background: rgba(255,255,255,0.9);
  left: 15%;
  margin-top:8%;
  box-shadow: 0px 0px 5px 0px #888;
}
.paper::before {
  content: '';
  position: absolute;
  left: 45px;
  height: 100%;
  width: 2px;
  background: rgba(255,0,0,0.4);
}
.lines {
  margin-top: 40px;
  height: calc(100% - 40px);
  width: 100%;
  background-image: repeating-linear-gradient(white 0px, white 24px, steelblue 25px);
}
.Lettertext {
  position: absolute;
  top: 65px;
  left: 55px;
  bottom: 10px;
  right: 10px;
  line-height: 25px;
  font-family: 'Bad Script', cursive;
  font-weight:bold;
  overflow: hidden;
  outline: none;
}

td
{
    padding-left:15px;
}

.topgap
{
    margin-top:10%;
}

.buttonSubmit
{
    margin-top:10px;
    margin-left:8px;
}
              
            
!

JS

              
                //Nope, Not Today..:)//
              
            
!
999px

Console