Div won't touch side of webpage

I know this CSS is messy, sorry about that, but I can’t for the life of me get the “left-btn” div to stick to the left side of the website. I already did a small css reset at the beginning, but it doesn’t help. Here is my codepen link:https://codepen.io/qtheginger/pen/wRaGrK

It happened because of transform: rotate(-90deg);


Imagine that your div is rotated from position 1 to position2 since you made rotation with - 90deg. Then There will be empty place on the left side right? In this case, you should give left offset with negative value such as -70px.

1 Like