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. 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

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

              
                <div id=country-widget>
  <div class=hdg>
    <div class=float>
      <h3>Sector summary</h3>
    </div>
    <div class="gf-reorder-btn SP_menu_button hide"></div>
  </div>
  <div id=secperf class="id-secperf sfe-section-major">
    <table width="100%" cellpadding=0 cellspacing=0>
      <tr class=colHeader>
        <td style="text-align:left; padding-right:0.5em">Sector</td>
        <td style="padding-right:1em;">Change</td>
        <td style="text-align:center" colspan=2>% down / up</td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:50&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Energy</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-1.48%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:10%"></td>
              <td class="chrSectorDark" style="width:56%" title="45% companies in Energy down by more than 2%"></td>
              <td class="chrSectorLight" style="width:34%; border-right:1px #CCB3AB solid" title="27% companies in Energy down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:25%;" title="21% companies in Energy are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:8%" title="7% companies in Energy are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:67%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:51&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Basic Materials</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-0.35%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:37%"></td>
              <td class="chrSectorDark" style="width:15%" title="12% companies in Basic Materials down by more than 2%"></td>
              <td class="chrSectorLight" style="width:48%; border-right:1px #CCB3AB solid" title="38% companies in Basic Materials down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:55%;" title="45% companies in Basic Materials are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:6%" title="5% companies in Basic Materials are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:39%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:52&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Industrials</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-0.46%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:30%"></td>
              <td class="chrSectorDark" style="width:17%" title="14% companies in Industrials down by more than 2%"></td>
              <td class="chrSectorLight" style="width:53%; border-right:1px #CCB3AB solid" title="42% companies in Industrials down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:45%;" title="37% companies in Industrials are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:8%" title="7% companies in Industrials are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:47%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:53&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Cyclical Cons. Goods ...</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chg>+0.07%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:42%"></td>
              <td class="chrSectorDark" style="width:17%" title="14% companies in Cyclical Cons. Goods &amp; Services down by more than 2%"></td>
              <td class="chrSectorLight" style="width:41%; border-right:1px #CCB3AB solid" title="33% companies in Cyclical Cons. Goods &amp; Services down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:55%;" title="45% companies in Cyclical Cons. Goods &amp; Services are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:9%" title="8% companies in Cyclical Cons. Goods &amp; Services are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:36%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:54&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Non-Cyclical Cons. Goods...</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chg>+0.08%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:41%"></td>
              <td class="chrSectorDark" style="width:13%" title="11% companies in Non-Cyclical Cons. Goods &amp; Services down by more than 2%"></td>
              <td class="chrSectorLight" style="width:46%; border-right:1px #CCB3AB solid" title="37% companies in Non-Cyclical Cons. Goods &amp; Services down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:55%;" title="45% companies in Non-Cyclical Cons. Goods &amp; Services are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:8%" title="7% companies in Non-Cyclical Cons. Goods &amp; Services are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:37%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:55&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Financials</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-0.52%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:27%"></td>
              <td class="chrSectorDark" style="width:5%" title="4% companies in Financials down by more than 2%"></td>
              <td class="chrSectorLight" style="width:68%; border-right:1px #CCB3AB solid" title="54% companies in Financials down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:46%;" title="38% companies in Financials are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:4%" title="4% companies in Financials are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:50%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:56&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Healthcare</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chg>+1.24%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:77%"></td>
              <td class="chrSectorDark" style="width:5%" title="4% companies in Healthcare down by more than 2%"></td>
              <td class="chrSectorLight" style="width:18%; border-right:1px #CCB3AB solid" title="15% companies in Healthcare down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:61%;" title="50% companies in Healthcare are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:38%" title="31% companies in Healthcare are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:1%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:57&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Technology</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chg>+0.54%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:63%"></td>
              <td class="chrSectorDark" style="width:5%" title="4% companies in Technology down by more than 2%"></td>
              <td class="chrSectorLight" style="width:32%; border-right:1px #CCB3AB solid" title="26% companies in Technology down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:71%;" title="58% companies in Technology are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:14%" title="12% companies in Technology are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:15%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:58&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Telecommunications Servi...</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-0.56%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:34%"></td>
              <td class="chrSectorDark" style="width:13%" title="11% companies in Telecommunications Services down by more than 2%"></td>
              <td class="chrSectorLight" style="width:53%; border-right:1px #CCB3AB solid" title="42% companies in Telecommunications Services down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:53%;" title="43% companies in Telecommunications Services are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:4%" title="4% companies in Telecommunications Services are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:43%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td style="text-align:left; padding-right:0.5em"><a href="/finance?catid=TRBC:59&amp;ei=3rlKWdimL4SqmgGqpbiQAg">Utilities</a></td>
        <td style="width:20%; padding-right:1em">
          <span class=chr>-0.61%</span>
        </td>
        <td style="width:29%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td style="background-color:#FFFFFF; width:1%"></td>
              <td class="chrSectorDark" style="width:8%" title="7% companies in Utilities down by more than 2%"></td>
              <td class="chrSectorLight" style="width:91%; border-right:1px #CCB3AB solid" title="72% companies in Utilities down between 0% and 2%"></td>
            </tr>
          </table>
        </td>
        <td style="width:31%">
          <table class=bars cellpadding="0" cellspacing="0" width="100%">
            <tr style="height:0.9em">
              <td class="chgSectorLight" style="width:22%;" title="18% companies in Utilities are up between 0% and 2%"></td>
              <td class="chgSectorDark" style="width:3%" title="3% companies in Utilities are up more than 2%"></td>
              <td style="background-color:#FFFFFF; width:75%"></td>
            </tr>
          </table>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console