Exercise 19 Validation Bug?

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

I can enter the requested lines for the exercise in the CSS stylesheet and leave the ‘div’ out entirely, and my code still validates as correct.
EDIT: Previously had the ‘div’ in angle brackets which left it unrendered. Question didn’t make much sense without it.

``` background-color: #CC0000; height: 100px; width: 100px; ```

Not a bug, just a lenient lesson check. So long as the style is rendering and you are satisfied that the CSS is correct as instructed, then let this one go.

1 Like

I could see that, and that’s fine. Just thought it was worth mentioning because without that ‘div’ and it’s brackets, nothing renders. I nearly forgot I needed to use it. Guess it works out ok though as long as the user realizes that it’s supposed to display something, and isn’t. Assuming that, might even be a good reminder opportunity as someone who’s really motivated would likely go back to a previous lesson and compare to find out why theirs isn’t working.

I suppose I just wanted to point it out in case it wasn’t intended behavior.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.