W3Schools CSS Quiz

CSSのpaddingには負の値を指定できない

CSS Quizの採点結果。

19. To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?

You answered: Yes

Wrong Answer!

知りませんでした^^;

正解

Unlike margin properties, values for padding values cannot be negative. Like margin properties, percentage values for padding properties refer to the width of the generated box's containing block.

が正解だそうです。

余談だが、おかげさまでパーセンテージの算出は幅が基準とされることも今回知った^^;;

"W3Schools CSS Quiz"へのTwitter上でのコメントやRT

ツイートを取得できませんでした。