.missing { -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */ filter: grayscale(100%); } .foil-badge{ position: absolute; font-size:12px; background-color:red; width:20px; height:20px; color:#fff; top: 22%; left: 10px; //background: radial-gradient( 5px -9px, circle, white 8%, red 26px ); //background-color: red; background: linear-gradient( 90deg, rgba(255, 0, 0, 1) 0%, rgba(255, 154, 0, 1) 10%, rgba(208, 222, 33, 1) 20%, rgba(79, 220, 74, 1) 30%, rgba(63, 218, 216, 1) 40%, rgba(47, 201, 226, 1) 50%, rgba(28, 127, 238, 1) 60%, rgba(95, 21, 242, 1) 70%, rgba(186, 12, 248, 1) 80%, rgba(251, 7, 217, 1) 90%, rgba(255, 0, 0, 1) 100% ); border: 2px solid white; border-radius: 12px; /* one half of ( (border * 2) + height + padding ) */ box-shadow: 1px 1px 1px black; color: white; font: bold 15px/13px Helvetica, Verdana, Tahoma; height: 16px; min-width: 20px; padding: 4px 3px 0 3px; text-align: center; } .non-foil-badge{ position: absolute; font-size:12px; background-color:red; width:20px; height:20px; color:#fff; top: 15%; left: 10px; //background: radial-gradient( 5px -9px, circle, white 8%, red 26px ); background-color: gray; border: 2px solid white; border-radius: 12px; /* one half of ( (border * 2) + height + padding ) */ box-shadow: 1px 1px 1px black; color: white; font: bold 15px/13px Helvetica, Verdana, Tahoma; height: 16px; min-width: 20px; padding: 4px 3px 0 3px; text-align: center; } .card-container{ display: inline-block; position: relative; width:316px; }