0
Tailwind css
What can be the reason if my bg colour property is not visible in the output
3 Antworten
+ 1
Perhaps you've written it incorrectly...?
Can you attach your code for someone to check?
https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
+ 1
A quick check would be to check if your bg property is being over shadowed by another style as CSS uses "Cascading":
Example 1 - inline styles are top preference than external stylesheets.
Example 2 - individual element style take preference over parent element inherited styles.
Anyway you don't need to copy your ENTIRE code, you should be able to write a minimum example reproducing the bug you are getting when asking in coding forums. Sometimes building that example actually ends up clearing your doubts.
If you still think the code is huge, try putting up a GitHub repo link.
0
How to post angular files code, it's huge?