davej Posted August 26, 2013 Share Posted August 26, 2013 Why does the w3school tutorial seem to suggest reversing the order of the arguments? border: 1px solid red; outline: red solid 1px; http://www.w3schools.com/cssref/pr_outline.asp I don't see that order suggested here... http://www.w3.org/wiki/CSS/Properties/outline Link to comment Share on other sites More sharing options...
Ingolme Posted August 26, 2013 Share Posted August 26, 2013 I don't think it's trying to suggest that. The arguments can be put in any order, so they just happened to put it in a different order than their border example. Link to comment Share on other sites More sharing options...
davej Posted August 26, 2013 Author Share Posted August 26, 2013 Well it the outline page says says... "The properties that can be set, are (in order): outline-color, outline-style, outline-width." and the border page says... "The properties that can be set, are (in order): border-width, border-style, and border-color." ...but neither page bothers to say that the order is arbitrary in all browsers. Link to comment Share on other sites More sharing options...
Ingolme Posted August 26, 2013 Share Posted August 26, 2013 Hmm, that can be misleading. But I think when they say "(in order)" they mean that the property names are in the same order as the example is. Link to comment Share on other sites More sharing options...
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