#followBtn { padding: 10px 16px; background-color: #409eff; color: white; border: #409eff; border-radius: 5px; cursor: pointer; position: absolute; right: 4.2vw; margin-top: -2.8vw; font-size: 14px; } #followBtn.followed { background-color: #f0f9eb; border: 1px solid #67c23a; color: #71c647; font-size: 14px; }