cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

            
              <div class="sidebar">
  <section class="news">
    <ul class="news-list">
      <li>
        <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>
            <ul>
              <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>
            </ul>
        </article>
      </li>

      <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>
            <ul>
              <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>
           </ul>
       </article>
     </li>
   </ul>
 
  </section>
        
</div>
            
          
!
            
              /* 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 {
  width:30%;
  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%;
}
            
          
!
999px
Loading ..................

Console