Jump to content

alternative solution to css question?


SamDave

Recommended Posts

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.

Link to comment
Share on other sites

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.......

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...