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.

            
              <ul>
  <li class="right">
    <img src="http://lorempixel.com/340/100/nature/1" />
    Maecenas faucibus mollis rnare sem lacinia quam venenatis vestibulum.
  </li>
  <li class="left">
    <img src="http://lorempixel.com/340/100/nature/2" /> 
    Maecenas faucibus mollis interdum. Etiam porta sem malesuada ma  llis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
  </li>
  <li class="right"> 
    Maecenas faucibus mollis interdum. Etiam porta sem malesuada magna mollis euismod. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque orngna mollis euismod. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porta sem malesuada magna mollis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
  </li>
  <li class="left">
    <img src="http://lorempixel.com/340/100/nature/3" />
    Maecenas fauci e ornare sem lacinia quam venenatis vestibulum.
  </li>
  <li class="right">
    Maecenas faucibus mollis interdum. Etiam porta sem malesuada magna mollis euismod. Lorem ipsum dolor sit amet, consec . Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
  </li>
  
  <li class="highlight">
    <img src="http://lorempixel.com/760/300/nature/4" />
  </li>
  
  <li class="right">
    <img src="http://lorempixel.com/340/100/nature/4" />
    Maecenas faucibus mollis interdum. Etiam porta sem malesuada magn e ornare sem lacinia quam venenatis vestibulum.
  </li>
   <li class="left">
    Maecenas faucibus mollis interdum. Etiam porta sem malesuada ma  llis euismod. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.
  </li>
</ul>
            
          
!
            
              * {
  box-sizing: border-box;   
}

ul {
  position: relative;
  overflow: hidden;
  list-style: none;
  width: 800px;
  margin: 30px auto;
  padding: 0;
}

ul:after {
  content:"";
  z-index: 1;
  position: absolute;
  left: 50%;
  top:0;
  width: 4px;
  margin-left: -2px;
  min-height: 100%;
  background-color: #eee;
}

li {
  z-index: 2;
  position: relative;
  width: 380px;
  padding: 20px;
  float: left;
  margin-bottom: 30px;
  background-color: #eee;
}

li.left {
  float: left;
  clear: left;
}

li.right {
  float: right;
  clear: right;
}

li.highlight {
  float: none;
  clear: both;
  width: auto;
  border: 5px solid #fff;
}

/* arrow */

li:before {
  content:"";
  z-index: 1;
  position: absolute;
  top: 14px;
  right: -6px;
  left: -6px;
  width: 12px;
  height: 12px;
  background-color: #eee;
  transform: rotate(45deg);
}

li.left:before {
  left: auto;
}

li.right + li.left:before,
li.left + li.right:before {
  top: 36px;
}

li.highlight:before {
  left: 50%;
  margin-left: -6px;
  right: auto;
  top: -6px;
}

/* dot */

li:after {
  content:"";
  z-index: 1;
  position: absolute;
  top: 14px;
  right: -27px;
  left: -27px;
  width: 8px;
  height: 8px;
  border: 3px solid #fff;
  border-radius: 100%;
  background-color: #ccc;
  transition: .2s;
}

li:hover:after {
  background-color: #999;
  top: 12px;
  right: -29px;
  left: -29px;
  width: 12px;
  height: 12px;
}

li.left:after {
  left: auto;
}

li.right + li.left:after,
li.left + li.right:after {
  top: 36px;
}

li.right + li.left:hover:after,
li.left + li.right:hover:after {
  top: 34px;
}

li.right:after {
  right: auto;
}

li.highlight:after {
  left: 50%;
  margin-left: -7px;
  right: auto;
  top: -24px;
}

li.highlight:hover:after {
  margin-left: -9px;
  top: -26px;
}
            
          
!
999px
Loading ..................

Console