img:hover { animation: shake 5s; animation-iteration-count: infinite; } * {box-sizing: border-box;} .container { position: relative; width: 100%; height: 80px; max-height: 80px; max-width: 100px; } .overlay { position: absolute; bottom: 0; background: rgb(102, 153, 52); background: rgba(102, 153, 52, 0.8); /* Black see-through */ -moz-background: rgb(102, 153, 52); -moz-background: rgba(102, 153, 52, 0.8); /* Black see-through for mozila */ color: #669934; width: 100%; transition: .5s ease; opacity:0; color: white; font-size: 15px; font-weight: bold; padding: 10px; text-align: left; } .container:hover .overlay { opacity: 1; } .tab-border { border-collapse:collapse; } .td1 { width: 20%; border: none; padding: 0; } .td2 { width: 15%; border: none; padding: 0; }