.container { position: relative; } .starButton { background: none; border: none; margin-right: 5px; } .starButton:hover { cursor: pointer; } .tooltip { position: absolute; right: 0; top: 35px; }