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 id="content">
  <h1>Image caption for the post</h1>
<div id="post">

  <img id="post-img" src="http://thewowstyle.com/wp-content/uploads/2015/02/beautiful-mountains-lake.jpg" />
  <div id="social">
    <a href="javascript:window.open('attackofbmack.com', 'width=500,height=500')">
      <div id="facebook" class="social">
      <img class="icon" src="http://icons.iconarchive.com/icons/mysitemyway/blue-jeans-social-media/128/facebook-icon.png" />

    <div id="twitter" class="social">
      <img class="icon" src="http://www.studioryu.com/images/twitter_icon.png" />

    <div id="pinterest" class="social">
      <img class="icon" src="https://image.ibb.co/gcLWZv/pinterestimg.jpg" />
  <!-- social -->
<!-- post -->
<a href="http://memeslife.com/post.php?media=966048221990948843_1483892754">Memeslife.com</a>
#content {
  width: 500px;
  height: auto;
  margin: 0px auto;
  position: relative;

#post-img {
  width: inherit;

#social {
  width: 80px;
  height: 240px;
  z-index: 10;
  position: absolute;
  left: -82px;
  top: 50%;
  margin-top: -123px;

.social {
  width: 80px;
  height: 80px;
  position: relative;

.social img {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -15px;
#pinterest img { width:60px; height:60px; margin-top: -30px; margin-left: -30px; }

#facebook {
  background: #8B9DC3;
  border: 1px solid #8b9dc3;

#twitter {
  background: lightblue;
  border: 1px solid lightblue;

#pinterest {
  background: #d73532;
  border: 1px solid #d73532;

.social:hover {
  cursor: pointer;
  width: 86px;
  border: 1px solid grey;
  left: -3px;

Loading ..................