Css cafe step 12 better soln

hello,

why won’t the test accept the more concise style of attaching the text alignment property to all three tags separated by commas? it wants separate entries for each. i understand the cascade (and the precedence this command style produces, but it is not consequential in this situation). this is just too much typing and i think it should accept both solutions. thanks.

Please post your code to show what you mean, but if I recall correctly, you should look at the next step. Usually the steps want to do what they ask

because it is gradually teaching things, so this step shows the three selectors separately, next step teaches about selector lists

1 Like

thanks sorry ill remove the post

hello,

i found another example: step 23, you introduce specific style background-color and suggest it in the instructions, but the solution accepts compound style background. but you didn’t show this way of doing it yet.

haha sorry if this tutorial isn’t intended to be this specific/pedantic! but i did notice some solutions will fail you if you don’t have the correct number of whitespace. i hope this is useful as showing you an inconsistency.

Feedback is useful.
But can you explain more? I don’t understand what you are talking about

step 23 passes with background-color

so as opposed to lesson 12 (lesson 12 only accepts primitive way that you’ve shown, of separate elements):

lesson 23 shows specific style background-color in the comment of instructions. we haven’t seen other ways of setting the background color of elements or text, however, lesson 23 will also pass with compound style declaration “background: burlywood;” although it hasn’t been introduced by the lessons.

so lesson 12 is specifically wanting only what has been shown in the tutorial while lesson 23 accepts all the different ways despite not having introduced them yet, is the inconsistency (i thought).

12 'sd 13 are a pair showing a specific pair of options.

step 23 is not asking to use a specific property, while step 12 specifically asks for three separate selectors. The two situations are different