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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lora:wght@700&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alegreya&family=Lora:wght@700&display=swap" rel="stylesheet">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alegreya:wght@400;600&family=Lora:wght@700&display=swap" rel="stylesheet">

<h1>Course Registration</h1>
<div class="form-flex-container">
   <div class="form-one">
        <form [formGroup]="courseForm" (ngSubmit)="onSubmit()">
            <div class="form-group">
              <h1>Semester: <span>Fall</span></h1>
              <div class="label-control">
                <label> Class:</label>
                    <select id="select3">
                        <option value="Intro to Programming">Intro to Programming</option>
                    </select>
                    <input class="form-control" type="hidden" formControlName="name" required>
              </div>
              
              <div class="label-control">
                <label> Credit Hours:</label>
                <p id="credits1">3</p>
                <input class="form-control" type="hidden" formControlName="credits" required>
              </div>
              
               <div class="label-control">
                <label> Code:</label>
                <p id="code1">CIS 101</p>
                <input class="form-control" type="hidden" formControlName="code" required>
               </div>
          <div class="label-control">
                <label> Description:</label>
                <p id="description1">First steps to learning how to create basic programs</p>
                <input class="form-control" type="hidden" formControlName="code" required>
          </div>
            <div class="label-control">
                <label> Class Type:</label>
                <p id ="type1">Computer Science</p>
                <input class="form-control" type="hidden" formControlName="type" required>
          </div>
                <div class="label-control">
                <label> Available Seats:</label>
                <p id="cap1">20</p>
                <input class="form-control" type="hidden" formControlName="cap" required>
            </div>
            <div class="form-group">
                <input class="form-control" type="hidden" formControlName="owner" required>
            </div>
          </div>
        </form>
  </div>
  <div class="form-two">
        <form [formGroup]="courseForm2" (ngSubmit)="onSubmit()">
             <div class="form-group">
              <h1>Semester: <span>Spring</span></h1>
              <div class="label-control">
                <label> Class:</label>
                    <select id="select3">
                        <option value="Intro to Programming">Intro to Programming</option>
                    </select>
                    <input class="form-control" type="hidden" formControlName="name" required>
              </div>
              
              <div class="label-control">
                <label> Credit Hours:</label>
                <p id="credits2">3</p>
                <input class="form-control" type="hidden" formControlName="credits" required>
              </div>
              
               <div class="label-control">
                <label> Code:</label>
                <p id="code2">CIS 101</p>
                <input class="form-control" type="hidden" formControlName="code" required>
               </div>

          <div class="label-control">
                <label> Description:</label>
                <p id="description2">First steps to learning how to create basic programs</p>
                <input class="form-control" type="hidden" formControlName="description" required>
          </div>
            <div class="label-control">
                <label> Class Type:</label>
                <p id="type2">Computer Science</p>
                <input class="form-control" type="hidden" formControlName="type" required>
          </div>
                <div class="label-control">
                <label> Available Seats:</label>
                <p id="cap2">20</p>
            </div>
            <div class="form-group">
                <input class="form-control" type="hidden" formControlName="owner" required>
            </div>
          </div>
        </form>
          </div>
    
   <div class="form-three">
        <form [formGroup]="courseForm3" (ngSubmit)="onSubmit()">
            <div class="form-group">
              <h1>Semester: <span>Summer</span></h1>
              <div class="label-control">
                <label> Class:</label>
                    <select id="select3">
                        <option value="Intro to Programming">Intro to Programming</option>
                    </select>
                    <input class="form-control" type="hidden" formControlName="name" required>
              </div>
              
              <div class="label-control">
                <label> Credit Hours:</label>
                <p id="credits3">3</p>
                <input class="form-control" type="hidden" formControlName="credits" required>
              </div>
              
               <div class="label-control">
                <label> Code:</label>
                <p id="code3">CIS 101</p>
                <input class="form-control" type="hidden" formControlName="code" required>
               </div>
          <div class="label-control">
                <label> Description:</label>
                <p id="description3">First steps to learning how to create basic programs</p>
                <input class="form-control" type="hidden" formControlName="description" required>
          </div>
            <div class="label-control">
                <label> Class Type:</label>
                <p id="type3">Computer Science</p>
                <input class="form-control" type="hidden" formControlName="type" required>
          </div>
                <div class="label-control">
                <label> Available Seats:</label>
                <p id="cap3">20</p>
                <input class="form-control" type="hidden" formControlName="cap" required>
            </div>
            <div class="form-group">
                <input class="form-control" type="hidden" formControlName="owner" required>
            </div>
          </div>
        </form>
  </div>
  <form style="position: relative;border-width: 0px;border-radius: 0px;padding: 0px;border-color:white;background-color: rgba( 71, 147, 227, 1);" (ngSubmit)="onSubmit()">  
    <div class="form-group">
        <button class="btn btn-primary btn-block" type="submit">Add Courses</button>
    </div>
</form>
</div>
              
            
!

CSS

              
                *{
  box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
span{
  font-weight: bold;
}
h1 span {
  color: black;
  font-weight: bolder;
  font-family: 'Lora', serif;
}
select{
  margin-left: 7px;
}
.label-control{
  padding-left: 10px;
  padding: 10px;
}

.label-control p{
  display:inline;
  font-size: 18px;
  font-family: 'Alegreya', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-left: 5px;
}

 h1{
  text-align: center;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
   font-family: 'Lora', serif;
}
.form-flex-container{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.form-one{
  padding-bottom: 15px;
  width: 42%;
}
.form-group label{
  color: white;
  font-size: 25px;
  font-weight:bold;
  font-family: 'Alegreya', serif;
  letter-spacing: 0.5px;
}
.classes{
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    padding-bottom: 23px;
}
span{
  font-weight: bold;
}
.form-two{
  width: 42%;
  padding-bottom: 15px;
}
.form-three{
  width: 42%;
}
button{
    margin-top: 15px;
    background-color: #324960;
    color: white;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    width: 400px;
    padding: 8px;
    font-size: 18px;
    font-family: 'Alegreya', serif;
    margin-bottom: 10px;
  
}
button:hover{
  background-color: white;
  color:#4FC3A1 ;
  font-weight: bold;
  font-style: italic;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
button:active{
  background-color: white;
  color:#4FC3A1;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
form{    
        border-style: solid;
        border-width: 5px;
        border-radius: 10px;
        border-color:#324960;
        background-color: #4FC3A1;
        color: black;
}

form > div {
    padding: 10px;
}

form > div > label{
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}
input{
    background-color:#324960;
    color:white;
    margin-left: 20px;
    border-radius: 8px;
    border: 1px solid rgba( 71, 147, 227, 1);
    height: 30px;
    padding-left: 10px;
}

body{
    font-family: Helvetica;
    -webkit-font-smoothing: antialiased;
    background: rgba( 71, 147, 227, 1);
}
h2{
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    padding: 0;
}

/* Table Styles */

.table-responsive{
    margin: 10px 70px 70px;
    box-shadow: 0px 35px 50px rgba( 0, 0, 0, 0.2 );
}

.table.table-bordered {
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    background-color: white;
}

.table.table-bordered td, .table.table-bordered th {
    text-align: center;
    padding: 8px;
}

.table.table-bordered td {
    border-right: 1px solid #000000;
    font-size: 12px;
}

.table.table-bordered thead th {
    color: #ffffff;
    background: #4FC3A1;
}


.table.table-bordered thead th:nth-child(odd) {
    color: #ffffff;
    background: #324960;
}

.table.table-bordered tr:nth-child(even) {
    background: #F8F8F8;
}

/* Responsive */

@media (max-width: 767px) {
    .table.table-bordered {
        display: block;
        width: 100%;
    }
    .table-wrapper:before{
        content: "Scroll horizontally >";
        display: block;
        text-align: right;
        font-size: 11px;
        color: white;
        padding: 0 0 10px;
    }
    .table.table-bordered thead, .table.table-bordered tbody, .table.table-bordered thead th {
        display: block;
    }
    .table.table-bordered thead th:last-child{
        border-bottom: none;
    }
    .table.table-bordered thead {
        float: left;
    }
    .table.table-bordered tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }
    .table.table-bordered td, .table.table-bordered th {
        padding: 20px .625em .625em .625em;
        height: 60px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        width: 120px;
        font-size: 13px;
        text-overflow: ellipsis;
    }
    .table.table-bordered thead th {
        text-align: left;
        border-bottom: 1px solid #f7f7f9;
    }
    .table.table-bordered tbody tr {
        display: table-cell;
    }
    .table.table-bordered tbody tr:nth-child(odd) {
        background: none;
    }
    .table.table-bordered tr:nth-child(even) {
        background: transparent;
    }
    .table.table-bordered tr td:nth-child(odd) {
        background: #F8F8F8;
        border-right: 1px solid #E6E4E4;
    }
    .table.table-bordered tr td:nth-child(even) {
        border-right: 1px solid #E6E4E4;
    }
    .table.table-bordered tbody td {
        display: block;
        text-align: center;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console