KesSaft
KesSaft
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
YES, I found a solution... Just changing the absolute to fixed...
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
I see, the problem accursed when part of the absolute element is outside of the view. It gets outside when I increase the left property. Have you ever had something like this?
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
I thought I would not dislike CSS, but now.... I just tried again removing the min-width but now it is also not working with it :C
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
Thanks, but now I have some problems. I still would like to have min-width in the main element and now it is not that easy to slide out the sidebar so it is out of view.
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
I also found out that when I set the left of the main element from 250px (when the sidebar is extended) to 0, I can't scroll anymore.
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
I am not sure if I should send you the Link to my site, because it is going into the nsfw direction....
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
I tried copying the code into a codepen but there is not problem than. Like on my website there is but in codepen not 😄 https://codepen.io/Konesky/pen/eYLNRjq?editors=1100
13 replies
KPCKevin Powell - Community
Created by KesSaft on 2/16/2023 in #front-end
Scroll in absolute item with body overflow: hidden
Thanks for replying! It is not nice when living an another timezone 😄 Because my Sidebar is fixed and changes in size when opening or closing it, I think that absolute is the best way. The min-width is needed because else it looks really bad when the main element is only 100px wide when the sidebar is fully open. I will try to create a codepen.
13 replies