How can I put background on div (pyreact)? #1101
Answered byrmorshea
valeriofiorentini asked this question in Problem
-
I can't put css on pyreact,html components for example the div |
BetaWas this translation helpful?Give feedback.
Answered by rmorshea Jul 13, 2023
Replies: 3 comments 2 replies
Uh oh!
There was an error while loading. Please reload this page.
-
BetaWas this translation helpful?Give feedback.
1 reply
-
Similar to ReactJS, we do not prescribe how you add styles to your app. Listed below are some of most common ways of adding CSS.
|
BetaWas this translation helpful?Give feedback.
0 replies
-
so it can't be used? |
BetaWas this translation helpful?Give feedback.
1 reply
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
ReactPy can include CSS styles but there a number of different ways to do so. The simplest way might be to do the following with
html.style:As you app grows you may need to consider splitting up your style sheets into different files. In that case you could serve them from a directory and load them with
html.link: