My goal is to place a vertical bootstrap button on the left side of the screen. Currently, I have implemented the following CSS:
#button1 {
position: absolute !important;
z-index: 10 !important;
left: 0px !important;
bottom: 20% !important;
transform: rotate(90deg);
-ms-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-webkit-transform: rotate(90deg);
-o-transform: rotate(90deg);
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />
<button id="button1" class="btn btn-lg btn-danger">Click to toggle popover</button>
The issue I am facing is that the button is not aligned perfectly to the left due to its rotation. This creates a gap between the edge and the button. How can I resolve this spacing problem?