.text-block { width: 250px; margin: 50px; } #go-top { position: fixed; bottom: 25px; right: 70px; text-align: center; cursor:pointer; display:none; width: 80px; height: 30px; background: #0383be; line-height: 30px; border-radius: 5px; } #go-top:hover { background: rgb(3, 73, 153); color: #fff; }