css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="sidebar">
  <section class="news">
    <ul class="news-list">
        <article class="article">
            <h4 class="article-title"><a href="http://www.cbc.ca/news/politics/ottawa-to-allow-air-passengers-to-use-electronic-devices-on-takeoff-landing-1.2654277">Ottawa to allow air passengers to use electronic devices on takeoff, landing</a></h4>
            <figure class="article-thumb"><a href="http://www.cbc.ca/news/politics/ottawa-to-allow-air-passengers-to-use-electronic-devices-on-takeoff-landing-1.2654277"><img src="http://i.cbc.ca/1.2651994.1400855954!/cpImage/httpImage/image.jpg_gen/derivatives/16x9tight_140/lisa-raitt.jpg" alt="Image: Lisa Raitt"></a></figure>
            <p class="article-desc">Transport Minister Lisa Raitt said electronic devices can be used during takeoff, ascent, descent, landing.</p>
              <li><a href="http://www.cbc.ca/news/politics/flight-attendants-resist-transport-canada-s-move-to-cut-their-numbers-1.2650860">Flight attendants resist Transport Canada’s move to cut their numbers</a></li>
              <li><a href="http://www.cbc.ca/news/canada/airline-travel-5-things-you-need-to-know-about-your-flight-rights-1.2580617">Airline travel: 5 things you need to know about your flight rights</a></li>

        <article class="article">
            <h4 class="article-title"><a href="http://www.cbc.ca/news/politics/ndp-wants-privacy-security-experts-to-probe-warrantless-data-gathering-1.2654148">NDP wants privacy, security experts to probe warrantless data gathering</a></h4>
            <figure class="article-thumb"><a href="http://www.cbc.ca/news/politics/ndp-wants-privacy-security-experts-to-probe-warrantless-data-gathering-1.2654148"><img src="http://i.cbc.ca/1.2654463.1401122770!/cpImage/httpImage/image.jpg_gen/derivatives/16x9tight_140/charlie-angus-20140430.jpg" alt="Image: Charlie Angus"></a></figure>
            <p class="article-desc">Charlie Angus, Francoise Boivin warn government to tread carefully on internet privacy.</p>
              <li><a href="http://www.cbc.ca/news/politics/declaration-on-mass-surveillance-calls-for-new-privacy-measures-1.2651751">Declaration on mass surveillance calls for new privacy measures</a></li>
              <li><a href="http://www.cbc.ca/news/politics/cyberbullying-bill-surveillance-powers-alarm-ontario-privacy-watchdog-1.2649523">Cyberbullying bill surveillance powers alarm Ontario privacy watchdog</a></li>
              /* General styles */
body {
  font-family: sans-serif;
  color: #333;

a {
  color: #0065BD;
  text-decoration: none;

a:hover, a:focus {
  text-decoration: underline;

/* Sidebar related styles */

.sidebar {
  font-size: 0.9em;
  line-height: 1.333;

/* News list module */

.news-list {
  padding-left: 0;

.news-list > li {  /* Child selector - only selects top-level lis */
  list-style: none;
  padding: 0.5em;
  border-bottom: 1px solid #d5d5d5;

.news-list li {  /* Descendant - common property in all lis (DRY) */
  margin-bottom: 0.5em; 

.article > ul {
  clear: both;
  padding-left: 1em;

.article li {
  list-style: square;
  font-size: 0.9em;
  /* no over-ride of bottom border or padding needed */

.article-title {
  font-size: 1.2em;
  margin: 0 0 1em;

.article-thumb {
  margin: 0 1em 1em 0;
  float: left;
  width: 110px;

.article-thumb img {
  max-width: 100%;
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................