Answer the question
In order to leave comments, you need to log in
How to fix a block with text in the center of the page on flex when scrolling?
Now it's position: fixed, so the position is set via top/left and when scrolling, the block with text is pressed to the bottom of the page. I'm desperate. Maybe using js you can try to make a floating block?
https://codepen.io/lil012/pen/mQxwqV
Answer the question
In order to leave comments, you need to log in
Maybe you want this:
https://css-tricks.com/position-sticky-2/
Maybe you want this:
.textwork {
position: fixed;
width: 30%;
right: 40px;
top: 50%;
transform: translateY(-50%);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question