SamDave Posted December 27, 2017 Report Share 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. Quote Link to comment Share on other sites More sharing options...
administrator Posted December 27, 2017 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Andrea Posted December 27, 2017 Report Share 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....... Quote Link to comment Share on other sites More sharing options...
SamDave Posted December 28, 2017 Author Report Share 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. :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.