CSS HTML apply style to child if parent got class
Go to solution
Solved by Joveice,
1 minute ago, Minibois said:You can have parent green or parent decide the text color I guess, if that is what you're looking for.
Not sure but I figured out what I had to do to get what I would like.
So I were doing .parent .green > p. and that dident work but it worked by removing the space in .parent.green.
So Yea I guess it was simper than I tought
Sorry for a post that was solved so fast by myself :3 as I just stumbled over it.
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