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 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.

Quick-add: + add another resource

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.

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.

              <body id="social-section">  
  <h1>Hover social buttons</h1>
  <h2>and the background color changes</h2>
<div class="social-container">
<a href="#" class="twitter"><i class="fa fa-twitter"></i>Twitter</a>

<a href="#" class="facebook"><i class="fa fa-facebook"></i>Facebook</a>

<a href="#" class="googleplus"><i class="fa fa-google-plus"></i>Google +</a>

<a href="#" class="pinterest"><i class="fa fa-pinterest"></i>Pinterest</a>

<a href="#" class="dribbble"><i class="fa fa-dribbble"></i>Dribbble</a>

<a href="#" class="instagram"><i class="fa fa-instagram"></i>Instagram</a>
              /* Demo Stuff */

h1, h2 {
  text-align: center;
  line-height: 20px
h1 {
    color: rgba(0,0,0,.8);

h2 {
  color: rgba(0,0,0,.2);

.social-container {
	margin:0 auto;
  padding: 40px 0;

/* Add this ID to a section or something you want to change the background-color */
#social-section {
  padding:60px 0;
  -webkit-transition: all .2s ease-out;
-moz-transition: all .2s ease-out;
-ms-transition: all .2s ease-out;
-o-transition: all .2s ease-out;
transition: all .2s ease-out;

/* Button Styles */
.social-container a {
display: block;
line-height: 40px;
border: 1px solid rgba(0,0,0,.1);
color: rgba(0,0,0,.6);
margin:20px 0;
text-decoration: none;

.social-container a::before {
  background-color: transparent;
  bottom: 0;
  content: '';
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -1;

.social-container a i {
margin-right: 15px;   

.social-container a:hover  {
border: 1px solid rgba(255,255,255,.3);
color: rgba(255,255,255,.6);

/* Hover background colors */
.twitter:hover::before {
  background-color: #00aced;
.facebook:hover::before {
  background-color: #3b5998;
.pinterest:hover::before {
  background-color: #cc2127;
.googleplus:hover::before {
  background-color: #dd4b39;
.dribbble:hover::before {
  background-color: #ea4c89;
.instagram:hover::before {
  background-color: #417399;

.social-container a,
.social-container a::before {
-webkit-transition: all .2s ease-in;
-moz-transition: all .2s ease-in;
-ms-transition: all .2s ease-in;
-o-transition: all .2s ease-in;
transition: all .2s ease-in;
Loading ..................