Background overlay with overflow html
Hi, My css structure looks like this:
<html> //scrollable overflow
<div className="fixed inset-0"><loadingSpinenr/></div>
</html/>
Is there possbility to provent of background scrolling w css when loading spinner visible ?7 Replies
If it’s just the spinner on the screen you can just do this-
Or if you don’t want to put it on the body use a wrapper.
but then i scan still scroll backend
That prevents a scroll bar
but if I have some additional content inside body which exceeds 100vh then the scroll appear
Am i wrong?
I could solve this by doing overflow-hidden
Yeah you’re right, that’s why I said if it’s just the spinner.
but then
How to pass styles from react component to body :/
Yeah so your overflow hidden should work then