Hello,
I'm trying to create a 60px-wide info box with a fixed position on the screen. To do that I used the CSS position: sticky
.
.sticky {
position: -webkit-sticky;
position: sticky;
top: 200px;
left: 0px;
z-index: 100;
}
As you can see in the video, it works quite well if I consider the scrolling, but it doesn't if I change the screen width. How can I anchor it to the left side of the viewport? left: 0px
apparently doesn't work.
Thank you very much!
Hello, I'm trying to create a 60px-wide info box with a fixed position on the screen. To do that I used the CSS `position: sticky`. `.sticky { position: -webkit-sticky; position: sticky; top: 200px; left: 0px; z-index: 100; }` As you can see in the video, it works quite well if I consider the scrolling, but it doesn't if I change the screen width. How can I anchor it to the left side of the viewport? `left: 0px` apparently doesn't work. Thank you very much!