WordPressだけではないが、cssにはmarginがあるのでR。
例えば、
margin:8px 0;
とcss内に書いてあることがあるのでR。
今回はこれを知るのでR。
すると、ここに書いてあったのでR。
それによると、
marginは次のオーダー順があり、
T – Top
R – Right
B – Bottom
L – Left
となるのでR。
さらに、指定には、
margin: a; /*= a a a a*/
margin: a b; /*= a b a b*/
margin: a b c; /*= a b c b*/
margin: a b c d;/*= a b c d*/
/*Where a, b, c and d are values. Valid values consists of at least one digit
* and a unit, e.g.: 12px. 0 (zero) doesn’t require a unit */
とすればよいようでR。




この記事をシェアできます。