Hi , I am having problems here’s a link to the HTML and CSS;
https://jsfiddle.net/nickm49/h2m6re9a/3/
I have added a header and footer rule " .card header footer" to set the height and padding but it doesn’t work, but when I add the same rules to the “.card header” and “.card footer” sections separately it does work, also when adding seperate “.card header” and “.card footer” rules it also works but combining into one rule doesn’t. Is it to do with specificity?
I worked it out, need to use a comma between selectors “header, footer” , just a space indicates descendant of previous selector.
link to the test; https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Fundamental_CSS_comprehension