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

              
                <div ng-app="app" ng-controller="ctrl">
  <h1>Allergies</h1>
     <div>
      <p>
        <i>GP transfer banner</i>
      </p>
   </div>
   <div>
      <p>
         <i>Content banner</i>
      </p>
   </div>   
	<h2>Current Allergies and Adverse Reactions</h2>
       <div>
         <p>
            <i>Exclusion banner</i>
         </p>
      </div>
	<table>
		<thead class="table">
			<tr>
				<th>Start Date</th>
				<th>Details</th>
			</tr>
		</thead>
			<tr ng-repeat="allergyadversereaction in records" class="table">
				<td width="110px">{{allergyadversereaction.start}}</td>
				<td width="500px">{{allergyadversereaction.details}}</td>
			</tr>
	</table>
<h2>Historical Allergies and Adverse Reactions</h2>
      <div>
         <p>
            <i>Exclusion banner</i>
         </p>
      </div>
	<table>
		<thead class="table">
			<tr>
				<th>Start Date</th>
				<th>End Date</th>
				<th>Details</th>
			</tr>
		</thead>
			<tr ng-repeat="allergyadversereaction in records1" class="table">
				<td width="110px">{{allergyadversereaction.start}}</td>
				<td width="110px">{{allergyadversereaction.end}}</td>
				<td width="500px">{{allergyadversereaction.details}}</td>
			</tr>
	</table>
</div>
              
            
!

CSS

              
                body {
    font-size:15px;
}

.angular-with-newlines {white-space: pre-wrap; } 

body h1 {margin-top:40px;}

table {
    background-color: transparent;
}
caption {
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: left;
}
th {
    text-align: left;
}
table {
    max-width: 100%;
    table-layout: auto;
    margin-bottom: 20px;
    border: 1px solid #dedede;
}

table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
table > thead > tr > th {
    vertical-align: top;
    border-bottom: 2px solid #ddd;
    text-transform: none;
    background-color: #777;
    color: white;
    text-align: left;
}
table > caption + thead > tr:first-child > th,
table > colgroup + thead > tr:first-child > th,
table > thead:first-child > tr:first-child > th,
table > caption + thead > tr:first-child > td,
table > colgroup + thead > tr:first-child > td,
table > thead:first-child > tr:first-child > td {
    border-top: 0;
}
table > tbody + tbody {
    b
}
table > tbody > tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

table col[class*="col-"] {
    position: static;
    display: table-column;
    float: none;
}
table td[class*="col-"],
table th[class*="col-"] {
    position: static;
    display: table-cell;
    float: none;
}


table td:first-child {
    /*width: 150px;*/
    /*font-weight:bold;*/
}

table.boldFirstColumn td:first-child {
    font-weight: bold;
}

table tr td {
    hyphens: auto;
}




table.dataTable thead {
    background-color: #444;
}
table td {
    hyphens: auto;
}

section table tr.success {
    background-color: #dff0d8 !important;
}

table tr.info {
    background-color: #d9edf7 !important;
}

section table tr.warning, table tr.testing, table tr.testing > td.sorting_1  {
    background-color: #fcf8e3 !important;
}
section table tr.danger, table tr.preference, table tr.preference > td.sorting_1  {
    background-color: #f2dede !important;
}

.orange {
    color: orange;
}

table.profile thead tr th {
    background-color: #248ec2;
}

table.request thead tr th {
    background-color: #ED1951;
}



hr {
    border: 0;
    border-bottom: 1px dashed #ccc;
    background: #999;
    margin: 30px 0px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

h2  {
    font-size:24px;
    line-height:29px;
}

table code {background-color: transparent;}

table p {
    margin-top: 12px;
    margin-bottom: 12px;
}

pre, table code {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

pre {
    margin: 25px 0px;
}

h3.codeExplanation {
    font-size:18px;
    font-style:normal;
    color: black;
    line-height: 24px;
}

h3 {color: #005EB8; }
h4 {color: #005EB8; }
              
            
!

JS

              
                (function(){
var app = angular.module('app',[]);
app.controller('ctrl',['$scope', function($scope){
$scope.records = [
  {start:"03-Apr-1990", details:"Nut allergy"},
      {start:"29-Jan-1983", details:"Hayfever"}
    ];
 $scope.records1 = [
	  {start:"30-Apr-2003", end:"11-Jun-2006", details:"Allergy to Penicillin, Patient experienced rash, nausea and vomiting"}
    ];
}]);
})();
              
            
!
999px

Console