CSS Inheritance
Go to solution
Solved by BuckGup,
3 hours ago, bowrilla said:
- No example/code then nobody can help
- what do you mean with "div classes" followed by "p"? <p> is not a some class of <div> ...
- https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance
I figured it out. I can do .className p and then when I use p inside the className div it uses that p instead of the global one

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now