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

              
                <table title="Audit Logs" summary="Alberto">
  <thead>
    <tr>
      <th scope="col" class="cell date-time">Date/Time</th>
      
      <th scope="col" class="cell pt-num">Patient # (MRN)</th>
      <th scope="col" class="cell user">Username</th>
      <th class="newrow"></th>
    </tr>
  </thead>
  <tbody class="top-level">
    <tr>
      <td class="cell date-time">2017-03-07 1:30 PM</td>
      
      <td class="cell pt-num">TRC123456789123</td>
      <td class="cell user">samantha.howes@my-fantastic-domain.com</td>
      <td class="newrow">
        
        Document filling: User successfully submitted and printed document "Bobby's New Parrot just flew over my head"
      </td>
    </tr>
    <tr>
      <td class="cell date-time">2017-03-07 2:12 PM</td>
      
      <td class="cell pt-num">TRC123456789123</td>
      <td class="cell user">elmer.fudd@my-fantastic-domain.com</td>
      <td class="newrow">
        Document filling: User successfully submitted and printed document "Bobby's New Giraffe walks slowly across the African desert"</td>
    </tr>
    <tr>
      <td class="cell date-time">2017-03-09 6:44 AM</td>
      
      <td class="cell">TRC123456789123</td>
      <td class="cell user">somebody.else@my-fantastic-domain.com</td>
      <td class="newrow">
        Went to the kitchen and made some tea, but got to chatting and forgot it on the counter. It's cold now.
      </td>
    </tr>
    <tr>
      <td class="cell date-time">2017-03-10 7:28 PM</td>
      
      <td class="cell pt-num">TRC123456789123</td>
      <td class="cell user">another.employee@my-fantastic-domain.com</td>
      <td class="newrow">
        Took out the trash. Damn, it's cold outside.</td>
    </tr>
  </tbody>
</table>
              
            
!

CSS

              
                body {
  background-color: #ffffff;
  font-family: helvetica;
  font-size: 14px;
  padding: 16px;
}
.strong {
  font-weight: 700;
}
.hidden{
    position: absolute;
    left: -9999px;
}
table {
    border-collapse:collapse;
  border: 1px solid #D9E3EB;
}
thead tr {
  background-color: #34648D;
}
td, th {
  text-align: left;
}
th.cell {
  background-color: #34648D;
  color: white;
  padding: 8px 14px;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}
.cell {
  display: inline-block;
  // padding: 14px;
  padding: 14px 14px 7px 14px;
  box-sizing: border-box;
  word-wrap: break-word; 
}
.cell.date-time {
  width: 20%;
  min-width: 180px;
}
.cell.pt-num {
  width: 20%;
  min-width: 180px;
}
.cell.user {
  width: auto;
}
td.cell {
  // border-bottom: 1px dashed #c5c5c5;
}
.newrow {
  display: inline-block;
  width: 60%;
}
td {
  color: #4A4A4A;
  padding: 14px 0;
}
th.newrow {
  width: 0;
  margin:0;
  padding: 0;
}
.top-level tr {
  border-bottom: 1px solid #DAE4EC;
}
.top-level tr:nth-child(odd) {
  background: #ffffff;
}
.top-level tr:nth-child(even) {
  background: #e6f5ff;/* #F7FAFC;*/
}

td.newrow {
  // padding: 14px;
  // border-top: 1px dashed #979797;
  padding: 7px 14px 14px 14px;
  // margin-left: 40%;
  margin-right: 14px;
  box-sizing: border-box;
  // width: 80%;
  width: 100%;
  font-size: 13px;
  color: #656565;
}
.rowspacer {
  // position:relative; 
  // float:left;
  width:40%;
  min-width:360px;
  display: inline-block;
  // background: red;
  height: 10px;
}
.description {
  // position:relative;
  // float:left;
  width: 55%;
  margin:0;
  display: inline-block;
  // padding-left: 14px;
}

              
            
!

JS

              
                
              
            
!
999px

Console