CSS not applying
How can i make sure my CSS is applying on:
.homepage .textani h4 {
font-size: 3.2rem;
font-weight: 700;
color: transparent;
-webkit-text-stroke: 7px orange;
}
It's working when i put it on h4 {}only or on .homepage . textani {}
What should i do with the parent element or something?
https://codepen.io/Boeroe/pen/mdaNNwX
4 Replies
.homepage .textani h4
=> .homepage h4.textani
textani
is a class on h4
, h4
isn't a child of textani
.homepage .textani h4 and how should the code lookng if u use this
Or is it not possible
If you want to select the
h4
you can use .homepage h4.textani
or .homepage h4
(if there aren't any other h4s, and so the class isn't necessary)Thank you brother!