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

              
                <body style="background-color: lightskyblue;">
  <div class="container" style="padding: 25px;">
    <div class="table" id="table1">
      <div class="row">
        <div class="col-sm-2">
          <figure><img class="img-rounded" width="150px" src="https://upload.wikimedia.org/wikipedia/commons/3/39/GodfreyKneller-IsaacNewton-1689.jpg" alt="A portrait of Sir Isaac Newton in 1689 painted by Godfrey Kneller" /><figcaption style="font-size: 11px;">A portrait of Sir Isaac Newton in 1689 painted by Godfrey Kneller - Public Domain</figcaption></figure>
        </div>
        <div class="col-sm-10">
          <h1>Sir Isaac Newton <small class="text-muted">(1642-1727)</small></h1>
          <p><em>"If I have seen further it is by standing on the shoulders of giants."</em></p>
        </div>
      </div>
    </div>
    
    <table class="table-responsive table">
      <tr>
        <td class="td-left-column">
          
        </td>
        <td>
          <p class="list-header">Timeline of scientific discoveries and published works</p>
          <ul>
            <li>1671 - Published "Method of Fluxions"</li>
            <li>1671-75 - Wrote "Of Natures Obvious Laws & Processes in Vegetation" (unpublished)</li>
            <li>1684 - Published "De motu corporum in gyrum"</li>
            <li>1687 - Published "Philosophiae Naturalis Principia Mathematica"</li>
            <li>1704 - Published "Opticks"</li>
            <li>1707 - Published "Arithmetica Universalis</li>
            <li>1711 - Published "De analysi per aequationes numero terminorum infinitas"</li>
          </ul>
        </td>
      </tr>
      
      <tr>
        <td class="td-left-column"></td>
        <td>
          <p class="list-header">Timelines of personal events</p>
          <ul>
            <li>December 25, 1642 - Isaac Newton born in Woolsthorpe, England</li>
            <li>1654 - Enrolls in the Grantham Grammar School</li>
            <li>1661 - Enrolls in Trinity College, Cambridge</li>
            <li>1669 - Appointed Lucasian Chair of Mathematics at Trinity</li>
            <li>1689 - Elected as Cambridge's representative to Parliament</li>
            <li>1705 - Knighted by Queen Anne</li>
            <li>1712 - Royal Society credits Newton with the discovery of calculus</li>
            <li>March 20, 1727 - Death of Sir Isaac Newton in London, England</li>
          </ul>
        </td>
      </tr>
      <tr>
        <td colspan="2" class="text-center">If you would like to find out more about Sir Isaac Newton, please visit <a href="https://en.wikipedia.org/wiki/Isaac_Newton">Wikipedia.org</a> or <a href="http://www.sparknotes.com/biography/newton/timeline.html">SparkNotes.com</a></td>
      </tr>
    </table>
    
  </div>


  <!-- Scripts -->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script>
    	$(document).ready(function(){
  		
      $("#table2").children().css("border", "gray");
      $(".container").css("background-color", "white");
      $(".td-left-column").css("width", "150px");
      $(".list-header").addClass("text-primary").css("font-weight","bold");
      $("h1").addClass("text-primary");
      
    });
  </script>
  <script src="scripts/index.js"></script>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console