New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to style the canvas element in React? #24
Comments
If you put the |
I found a css alternative around this using styled-components:
I can style the parent container that contains |
I tried this by doing this in react component
.css file
But the canvas is still in front. Any ideas? |
Edit: I usually use @slothdude may be But why either |
position:absolute / position:fixed fixed it, thanks! |
The canvas is wrapped in unmarked div tags.
Is there a way to apply styles to the canvas so I can manipulate it as a background of another element (position: 'absolute', top: 0, left: 0, zIndex: -1)? So far, my react styling does nothing but push the canvas down.
Additional info, I would like to be able to do this without needing an external css file. So far, I have the and it would be great if I can somehow manipulate it's zIndex, position, and all other typical canvas styles.
The text was updated successfully, but these errors were encountered: