I'm having trouble figuring out how to make my purple button sticky and responsive on the right side of the screen as I scroll down. Can someone help me with this?
This is the snippet of my HTML code:
<Col className="colPre">
<Connexion/>
</Col>
This is the CSS styling for my button:
.buttonPreInscr{
background-color:purple!important;
float:right;
border-width: 0;
padding-top: 4%;
padding-bottom: 1%;
padding-left: 2%;
padding-right: 2%;
border-radius: 20px;
vertical-align:top;
transform:rotate(7deg);
-ms-transform:rotate(90deg); /* IE 9 */
-moz-transform:rotate(90deg); /* Firefox */
-webkit-transform:rotate(90deg); /* Safari and Chrome */
-o-transform:rotate(90deg); /* Opera */
}
.colPre{
position:absolute;
left:73px;
top:45%;
z-index: 2000;
}
Please find the image showing how my button looks with this code here.