.box { overflow: hidden; } .kot { position: absolute; width: 0; height: 0; border-top: 55px solid green; border-right: 55px solid transparent; } .kot p { position: absolute; top: -60px; left: 4px; transform: rotate(-45deg); font-size: 16px; color: white; } .box { position: relative; width: 315px; height: 160px; margin: 20px; background: #FFFF99; border-radius: 10px; font-size: 18px; font-family: 'Arial'; } .box-vsebina { width: 150px; margin: 12px auto; text-align: center; } .tecaj { color: #00CCFF; text-transform: uppercase; } .predmet { color: #660000; font-weight: bold; margin-top: 3px; } .box-vsebina img { width: 100px; margin-top: 20px; } .box-vsebina img:hover { margin-top: 1px; }