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


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


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.


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.


<p>We are using <a href="">the third sheet</a> in this workbook. You can <a href="">take a look at the JSON data.</a> </p>
<p>Consider using a <a href="">plugin to help format the data</a> so you can tell what's going on. </p>

<div id="theNames"></div>



                body {
  width: 800px;
  margin: 100px auto;
  font-family: sans-serif;

a {
  color: blue;

#theNames {
  display: flex;
  flex-wrap: wrap;
.person {
  display: block;
  width: 120px;
  height: 100px;
  text-align: center;
  border: thin solid;
  padding: 10px;
  margin: 10px;

.age {
  font-size: 3em;


                //STUFF with ******** is stuff you'd change to make this work with your sheet, you can leave the rest alone

const sheetId = '1gTUY_4uUOTjUsSLMP0eLMEXgr0l2M7WQmLtibYIkflg';//*********put your sheet ID
const sheetPage = 3;//************put in your sheet number
const sheetUrl = `${sheetId}/${sheetPage}/public/values?alt=json`;
console.log(sheetUrl) //uncomment this if you find your data is loading and make sure the link works - you must publish your sheet as HTML

fetch(sheetUrl).then(function(response) {
  const contentType = response.headers.get("content-type");
  if (contentType && contentType.indexOf("application/json") !== -1) {
    return response.json().then(function(json) {
      // now that you've got the data let's do something with it per item
      if (json.feed.entry) {
        const data = json.feed.entry;
               const destination = document.getElementById('theNames')//****specific to the ID on this page
               const html = destination.innerHTML
               const name = element.gsx$name.$t//**********specific to the column name
               const age = element.gsx$age.$t//**********specific to the column name
               destination.innerHTML = html + `<div class="person">${name}<div class="age">${age}</div></div>`;//********your template