Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <html lang="en" >
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Angular Material style sheet -->
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.css">
<body ng-app="BlankApp">
  <!-- Your HTML content here -->
  <!--------  Today's theme --------->
  <div layout="row" class="theme" layout-align="center center">Day 4: Calculator</div>

  <!--------  Working area --------->
  <div class="working-area">
    <div layout="row" layout-align="center center">
      <md-input-container flex=100>
        <label>Hit me</label>
        <input name="calculations">
    <div layout="row" layout-align="center center">
      <md-button type="submit" class="calcButton other_buttons">mc</md-button>
      <md-button type="submit" class="calcButton other_buttons">m+</md-button>
      <md-button type="submit" class="calcButton other_buttons">m-</md-button>
      <md-button type="submit" class="calcButton other_buttons">mr</md-button>
    <div layout="row" layout-align="center center" class="other_buttons_color">
      <md-button type="submit" class="calcButton other_buttons">C</md-button>
      <md-button type="submit" class="calcButton other_buttons">/</md-button>
      <md-button type="submit" class="calcButton other_buttons">X</md-button>
      <md-button type="submit" class="calcButton other_buttons">< </md-button>
    <div layout="row" layout-align="center center">
      <md-button type="submit" class="calcButton ">7</md-button>
      <md-button type="submit" class="calcButton ">8</md-button>
      <md-button type="submit" class="calcButton ">9</md-button>
      <md-button type="submit" class="calcButton other_buttons_color">-</md-button>
    <div layout="row" layout-align="center center">
      <md-button type="submit" class="calcButton">4</md-button>
      <md-button type="submit" class="calcButton">5</md-button>
      <md-button type="submit" class="calcButton">6</md-button>
      <md-button type="submit" class="calcButton other_buttons_color">+</md-button>
    <div layout="row" layout-align="center center">
      <md-button type="submit" class="calcButton">1</md-button>
      <md-button type="submit" class="calcButton">2</md-button>
      <md-button type="submit" class="calcButton">3</md-button>
      <md-button type="submit" class="calcButton equal_button">=</md-button>
      <div layout="row" layout-align="center center">
      <md-button type="submit" class="calcButton">%</md-button>
      <md-button type="submit" class="calcButton">0</md-button>
      <md-button type="submit" class="calcButton">.</md-button>
      <md-button type="submit" class="calcButton">,</md-button>
  <!--------  Footer --------->
  <div layout="row" layout-align="center center" class="background-color-green"><h3>YouTube tutorial <a href="https://youtu.be/0wj2uOCIM8Y" target="_blank"> here!</a></h3></div><br>
  <div layout="row" layout-align="center center" class="background-color-green">Created by Eleftheria</div>
  <div id="footer" layout="row" layout-align="center center" class="background-color-green">
      <!-- Linkedin -->
      <a href="https://www.linkedin.com/in/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/39/39714.svg" class="footer_image" alt="linkedin" title="linkedin"></a> ~
      <!-- Codepen -->
      <a href="https://codepen.io/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/51/51767.svg" class="footer_image" alt="codepen" title="codepen"></a> ~
      <!-- Youtube -->
      <a href="https://www.youtube.com/c/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/733/733646.svg" class="footer_image" alt="youtube" title="youtube"></a> ~
      <!-- Twitter -->
      <a href="https://twitter.com/BatsouElef" target="_blank"><img src="https://image.flaticon.com/icons/svg/8/8800.svg" class="footer_image" alt="twitter" title="twitter"></a> ~
      <!-- Github -->
      <a href="https://github.com/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/25/25231.svg" class="footer_image" alt="github" title="github"></a> ~ 
      <!-- Instagram -->
      <a href="https://www.instagram.com/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/69/69366.svg" class="footer_image" alt="instagram" title="instagram"></a> ~
    <!-- Website -->
      <a href="http://www.eleftheriabatsou.com" target="_blank"><img src="https://image.flaticon.com/icons/svg/484/484101.svg" class="footer_image" alt="website" title="website"></a>
  <!-- Angular Material requires Angular.js Libraries -->
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular-animate.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular-aria.min.js"></script>
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.6/angular-messages.min.js"></script>

  <!-- Angular Material Library -->
  <script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.js"></script>
  <!-- Your application bootstrap  -->
  <script type="text/javascript">    
     * You must include the dependency on 'ngMaterial' 
    angular.module('BlankApp', ['ngMaterial', 'ngMessages']);


Copyright 2016-2019 Google Inc. All Rights Reserved. 
Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://material.angularjs.org/latest/license.
              body {
  background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Helvetica, sans-serif;

.theme {
  padding:32px 0;

.working-area {
  width: 90%;
  height: auto;
  margin: 0 auto;
  background-color: rgba(142,36,170,0.3);
  padding: 16px;
  border-radius: 8px;

md-input-container {
  background-color: #a8edea !important;
  border-bottom: 4px solid black;

.calcButton {
  font-size: 1.4em !important;
  background-color: #a8edea !important;
  padding: 16px 8px !important;
  margin: 1px !important;
  border: 4px solid black !important;

  background-color: lightblue !important;

.other_buttons_color  {
  color: blue !important;

  background-color: lightgoldenrodyellow !important;

#footer .footer_image {
  height: 24px;
  text-align: center;
  padding: 4px;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.