re: Quick CSS Quiz #2 VIEW POST


Wrong answer: I choose 300px and 200px.

I thing it's the correct because box have no content.

Please explain why


Because padding is always calculated from the width.


Yes, this the behavior for percentage unite with padding property (even top and bottom padding) it always calculated relative to element's parent width.

code of conduct - report abuse