SamDave Posted December 27, 2017 Report Posted December 27, 2017 Recently joined the IWDC and regard it as the best money I've ever spent on web dev training. Just wondering if there's a possible alternative solution to one of the questions in the Beginners CSS module. Chapter 5, lesson11 (CSS navbars) question 2. Correct answer is a { width: 50px; display: block; } but would a { display: block; width: 50px; } also be valid ? (currently it's marked as incorrect). Excellent course. Thanks for all that you're teaching me, Stef. All the Best for the year ahead.
administrator Posted December 27, 2017 Report Posted December 27, 2017 Both are valid, but the quizzing questions sometimes ask for a specific order. Either way you are good though. Glad to hear you like the course. Stef
Andrea Posted December 27, 2017 Report Posted December 27, 2017 To add my 2 cents worth: Order only matters if you're addressing the same thing twice. Then the directions furthest down will apply. Now, addressing the same thing twice doesn't really make sense, but sometimes, it happens that one specifies something further down again, and then cannot understand why an earlier spec just isn't working. I wished I could think of a good example.......
SamDave Posted December 28, 2017 Author Report Posted December 28, 2017 Thank You both. Now I look again at the question I can see there was kind of a hint that the line I needed to add should go under the one that was already there. Being the awkward kind, I just had to add the line ABOVE the existing one. :-)
Recommended Posts
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