Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="es">
<head>
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>Document</title>
     <link rel="stylesheet" href="css/styles.css">
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body>
     
     <h1>Redes Sociales</h1>

  <div class ="iconos">
         <a href="http://facebook.com" class="icon facebook">
         <span class="clase face">Facebook</span></a>
       
         <a href="http://twitter.com" class="icon twitter">
          <span class="clase twitter">Twitter</span></a>
       
         <a href="http://instagram.com" class="icon instagram">
          <span class="clase instagram">Instagram</span></a>
          
          <a href="http://youtube.com" class="icon youtube">
          <span class="clase youtube">Youtube</span></a>
  </div>


<script type = "text/javascript" src = "js/js.js"></script>
</body>
</html>



              
            
!

CSS

              
                
body {
     text-align:center;
     padding-top:0;
    
}



.iconos {
     margin-top:0px;
     padding-top:0px;
}

a { 
     background: #d2d7d3;
     color:#222;
     border-radius:100%;
     display:inline-block;
     text-decoration:none;
     position:relative;
     width:40px;
     height:28px;
     margin:0 2px;
     padding-top:12px;
     -webkit-transition: all .5s;
     -moz-webkit-transition:all .5s;
     transition: all .5s;

}

/* Hijo pero su padre no está declarado */

a.icon:before {
     font-family:"FontAwesome", sans-serif;
     color:#fff;
     font-size:20px;
}
/* Hijs sin  padre declarado */

/* facebook */ 

a.facebook:before {
     content:'\f09a'
}

/* Twitter */ 

a.twitter:before {
     content:"\f099";
}

/* instagram */ 

a.instagram:before {
     content:"\f16d";
}

/* Youtube */ 

a.youtube:before {
     content:"\f16a";
}


/* Padre */ 
a span {
     font-family:"Helvecita", "Arial";
     background: #dddd; /* #fff; */
     color:#222;
     font-size:14px;
     font-weight:bold;
     position:absolute;
     top:0px; /*bottom:0px; */
     left:-25px;
     right:-25px;
     padding: 5px 7px;
     visibility: hidden;
     opacity:0;
     -webkit-transition: all .4s;
     -moz-transition: all .4s;
     transition: all .4s;
}
/* Pseudoelemento de a span */ 

/* flechita de arriba */ 
a span:before {
content: '';
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #dddd; /*border-top: 5px solid #fff;*/
position:absolute;
bottom:26px; /*bottom:-5px; */
left:40px;

}

a:hover span {
     top:50px; /* bottom:50px; */
     visibility:visible;
     opacity:1;
}

/* Hover através de los iconos, icono x icono */

/* facebook */ 

a.facebook:hover {
     background-color:#4183d7;
     color:#bfbfbf;
}
a.facebook span {
     color: #4183d7;
}

/* twitter */

a.twitter:hover {
     background-color:#1da1f2;

     color:#bfbfbf;
}

a.twitter span {
     color:#1da1f2;
}


/* instagram */ 

a.instagram:hover {
     background-color:#e1306c;

     color:#bfbfbf;
}

a.instagram span {
     color:#e1306c;
}

/* Youtube */ 

a.youtube:hover {
     background-color:red;
     color:#bfbfbf;
}

a.youtube span {
     color:red;
}

              
            
!

JS

              
                
              
            
!
999px

Console