In article <ffem6n$q1l$1 (AT) aioe (DOT) org>, maya <maya778899 (AT) yahoo (DOT) com>
wrote:
Quote:
hi,
when only three values are specified, like for example
margin:10px 0 0;
which ones are they, please.. |
What you have here is equivalent to
margin-top: 10px;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
For those who simply will not accept that there are different
sorts of nothing, it is very hard to see what quite is going on
in your example. Which nothing, for example, is informing the
right, bottom and left, given that you have two nothings that yet
generate three values of nothing?
Perhaps this will appeal to the more down to earth types rather
than the explanation I favour but which would get me shot:
body {margin: 1px;} is equivalent to
margin-top: 1px;
margin-right: 1px;
margin-bottom: 1px;
margin-left: 1px;
body {margin: 1px 2px;} is equivalent to
margin-top: 1px;
margin-right: 2px;
margin-bottom: 1px;
margin-left: 2px;
body {margin: 1px 2px 3px} is equivalent to
margin-top: 1px;
margin-right: 2px;
margin-bottom: 3px;
margin-left: 2px;
body {margin: 1px 2px 3px 4px;} is equivalent to
margin-top: 1px;
margin-right: 2px;
margin-bottom: 3px;
margin-left: 4px;
It is an exceedingly stupid thing to do to put in three values
because no one can remember these things and it smacks of
pretentious posing. 4 is ok if they are different, 2 is a genuine
shortcut, one is obviously so. But 3 is in a class of its own, it
is a particularly provocative and irritating thing and I
recommend, with my considerable authority, against it. In fact,
just seeing it has made me feel iller than I already feel.
--
dorayme