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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 class="module Trends trends">
  <div class="trends-inner">
    <div class="flex-module trends-container context-trends-container">
      <div class="flex-module-header">
        <h3><span class="trend-location js-trend-location">Trends</span></h3>
        <span class="middot">·</span> <a role="button" href="javascript:;" class="change-trends js-trend-toggle">Change</a>
      </div>
      <div class="flex-module-inner">
        <ul class="trend-items js-trends">

          <li class="trend-item js-trend-item promoted-trend context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex promoted" href="javascript:;">
              <span class="u-linkComplex-target trend-name">#GoodThingsForLife</span>
              <div class="js-nav trend-item-context">Delivering real, everyday convenience for real, everyday moments</div>
              <span class="with-icn js-disclosure js-tooltip">
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex" href="javascript:;">
              <span class="u-linkComplex-target trend-name">Bryce Harper</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                Bryce Harper storms the mound throwing a helmet and punches
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex" href="javascript:;">
              <span class="u-linkComplex-target trend-name">#TheBachlorette</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats"></div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex" href="javascript:;">
              <span class="u-linkComplex-target trend-name">Strickland</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                56K Tweets
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex" href="javascript:;">
              <span class="u-linkComplex-target trend-name">Frank Deford</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                Beloved sports commentator Frank Deford has died, aged 78
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex" href="javascript:;">
              <span class="u-linkComplex-target trend-name">#UnderratedThings</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                8,774 Tweets
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex " href="javascript:;">
              <span class="u-linkComplex-target trend-name">#engsschat</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex " href="javascript:;">
              <span class="u-linkComplex-target trend-name">Chuck Woolery</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                3,274 Tweets
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex " href="javascript:;">
              <span class="u-linkComplex-target trend-name">Texas Republican</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                21.8K Tweets
              </div>
            </a>
          </li>

          <li class="trend-item js-trend-item  context-trend-item">
            <a class="pretty-link js-nav js-tooltip u-linkComplex " href="javascript:;">
              <span class="u-linkComplex-target trend-name">Hope Hicks</span>
              <div class="js-nav trend-item-context"></div>
              <div class="js-nav trend-item-stats">
                2,641 Tweets
              </div>
            </a>
          </li>

        </ul>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                .Trends {
  background-color: #fff;
  background-clip: inherit;
  border: 1px solid #e6ecf0;
  line-height: inherit;
  padding: 15px;
  width: 40%;
}

.module {
  background-clip: padding-box;
  border: 0;
  border-radius: 6px;
  position: relative;
  margin-bottom: 10px;
}

.module ul:last-child li:last-child .list-link, .module ul:last-child li.last-item .list-link, .module .list-link.last, .module .flex-module:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.module ul:first-child li:first-child .list-link, .module .flex-module:first-child {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.Trends .flex-module {
  background-color: inherit;
  border: 0;
  line-height: inherit;
  padding: 0;
}

.module .flex-module {
  background-color: #fff;
  border: 1px solid #e6ecf0;
  padding: 15px;
  line-height: 16px;
}
              
            
!

JS

              
                glanceDOM("Trends > GoodThings#contains-text")
              
            
!
999px

Console