"social"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/Creaticode/pen/roAwF?limit=all&page=38&q=markup" /> <style class="cp-pen-styles">body { background: #D9D9D9; margin: 0; padding: 0; } .clearfix:after { content: ''; width: 0; height: 0; visibility: hidden; display: block; clear: both; } /* * Content & Hexagon * */ .content { margin: 180px auto 40px; width: 300px; padding-bottom: 30px; } .hexagon { margin-top: 30px; height: 50px; width: 90px; background: #FFF; position: relative; float: left; margin-right: 5px; cursor: pointer; } .hexagon:before { position: absolute; bottom: 100%; content: ''; height: 0; width: 0; border-width: 0 45px 30px 45px; border-style: solid; border-color: #FFF transparent; } .hexagon:after { position: absolute; top: 100%; content: ''; height: 0; width: 0; border-width: 30px 45px 0 45px; border-style: solid; border-color: #FFF transparent; } .top, .bottom { float: left; clear: left; } .top { margin-left: 48px; margin-top: 3px; } .bottom { margin-top: 3px; } /* * Social Icons * */ .hexagon[class*="icon-"]{ background-color: #FFF; background-repeat: no-repeat; background-position: 50% 50%; } .icon-twitter { background-image: url('http://k36.kn3.net/4/F/2/D/A/7/076.png'); } .icon-dribble { background-image: url('http://k44.kn3.net/5/6/B/C/E/7/D3C.png'); } .icon-youtube { background-image: url('http://k38.kn3.net/8/E/F/3/0/C/662.png'); } .icon-plixi { background-image: url('http://k42.kn3.net/1/C/A/4/3/4/480.png'); } .icon-tumblr { background-image: url('http://k35.kn3.net/5/7/0/0/E/4/C32.png'); } /* * Hover * */ .hexagon:hover{ background-color: #F5F5F5; } .hexagon:hover:before, .hexagon:hover:after { border-color: #F5F5F5 transparent; } </style></head><body> <html lang="es"> <head> <meta charset="UTF-8"> <title>Hexagonos en CSS</title> <!-- Stylesheets --> <link rel="stylesheet" href="style.css"> </head> <body> <!-- Markup --> <div class="content clearfix"> <div class="top"> <div class="hexagon icon-twitter"></div> <div class="hexagon icon-dribble"></div> </div> <div class="bottom"> <div class="hexagon icon-youtube"></div> <div class="hexagon icon-plixi"></div> <div class="hexagon icon-tumblr"></div> </div> </div> </body> </html> </body></html>

Related: See More


Questions / Comments: