<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 lang='en' 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/saimfd/pen/QGBNbJ?depth=everything&order=popularity&page=10&q=icon+box&show_forks=false" />
<style class="cp-pen-styles">@import url("https://fonts.googleapis.com/css?family=Aref+Ruqaa");
p {
text-align: center;
font-size: 20px;
font-family: helvetica, arial, sans-serif;
}
h1 {
color: #000;
font-family: 'Aref Ruqaa', serif;
text-align: center;
padding: 20px 0;
}
.container {
width: 668px;
margin: 30px auto;
}
.box, .edit-icon, .emoji-icon, .card-icon-box, .card-icon {
width: 120px;
height: 120px;
border-radius: 5px;
display: inline-block;
margin: 0 50px;
position: relative;
}
.edit-icon {
background: linear-gradient(80deg, #441ae8, #6A48ED);
}
.edit-icon .triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 100px 0 0 100px;
border-color: transparent transparent transparent #FFD84F;
position: absolute;
right: -38px;
top: -34px;
z-index: 3;
}
.edit-icon .triangle .inner-triangle {
width: 0;
height: 0;
border-style: solid;
border-width: 30px 0 0 30px;
border-color: transparent transparent transparent #F45666;
position: absolute;
top: -50px;
right: 50px;
}
.edit-icon .circle {
width: 17px;
height: 17px;
background: linear-gradient(90deg, #5CCBDB, #32bed2);
border-radius: 100%;
position: absolute;
z-index: 4;
}
.edit-icon .circle:nth-child(1) {
top: 40%;
left: -8px;
}
.edit-icon .circle:nth-child(2) {
bottom: -8px;
left: -8px;
}
.edit-icon .circle:nth-child(3) {
top: 40%;
left: 50%;
}
.edit-icon .circle:nth-child(4) {
bottom: -8px;
left: 50%;
}
.emoji-icon {
background: linear-gradient(80deg, #f78691, #F45666);
}
.emoji-icon .emoji {
background: linear-gradient(30deg, #ffef63, #ffa64d);
border-radius: 100%;
width: 100px;
height: 100px;
position: absolute;
top: -15px;
left: -15px;
box-shadow: 6px 7px 1px #f34c5d;
}
.emoji-icon .emoji .eyes {
transform: rotate(-10deg);
transform-origin: top;
}
.emoji-icon .emoji .eyes:before {
content: "";
background: #333;
width: 10px;
height: 10px;
position: absolute;
top: 25px;
left: 20px;
border-radius: 100%;
}
.emoji-icon .emoji .eyes:after {
content: "";
background: #333;
width: 10px;
height: 10px;
position: absolute;
top: 25px;
left: 65px;
border-radius: 100%;
}
.emoji-icon .emoji .mouth {
width: 30px;
height: 15px;
border-radius: 30px 30px 0 0;
background: #F45666;
position: absolute;
top: 40%;
left: 43%;
transform: rotate(-10deg);
}
.card-icon-box {
margin: 0 50px;
width: auto;
height: auto;
}
.card-icon {
background: linear-gradient(80deg, #86d8e4, #5CCBDB);
position: static;
overflow: hidden;
margin: 0;
}
.card-icon .card1, .card-icon .card2 {
background: #ff3377;
width: 100px;
height: 110px;
border-radius: 7px;
position: absolute;
top: -10px;
right: 0px;
transform: rotate(10deg);
z-index: 9999;
}
.card-icon .card1 .line, .card-icon .card2 .line, .card-icon .card1 .line2, .card-icon .card2 .line2 {
background: linear-gradient(90deg, #ffef63, #ffa64d);
width: 70px;
height: 5px;
margin: 0 auto;
}
.card-icon .card1 .line2, .card-icon .card2 .line2 {
width: 20px;
margin-top: 5px;
}
.card-icon .card1 .card-bg, .card-icon .card2 .card-bg {
width: 80px;
height: 50px;
margin: 10px auto;
background: #cc0044;
transform: rotate(1deg);
overflow: hidden;
}
.card-icon .card1 .card-bg .sun, .card-icon .card2 .card-bg .sun {
background: linear-gradient(90deg, #ffef63, #ffa64d);
border-radius: 100%;
width: 50px;
height: 50px;
transform: translate(15px, 25px);
}
.card-icon .card2 {
background: #6A48ED;
position: static;
margin-top: 110px;
left: 0;
}
</style></head><body>
<div class="container">
<h1>CSS Icons</h1>
<div class="edit-icon">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="triangle">
<div class="inner-triangle"></div>
</div>
</div>
<div class="emoji-icon">
<div class="emoji">
<div class="eyes"></div>
<div class="mouth"></div>
</div>
</div>
<div class="card-icon-box">
<div class="card-icon">
<div class="card1">
<div class="card-bg">
<div class="sun"></div>
</div>
<div class="line"></div>
<div class="line2"></div>
</div>
<div class="card2"></div>
</div>
</div>
<p>Inspiration from <a href="https://dribbble.com/shots/3146537-icon" target="_blank">Dribbble</a></p>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
</body></html>