How can a block with a set width be centered horizontally in its containing block?
Answer options
- A. Use auto top and bottom padding
- B. Use a negative border width
- C. Use overflow: visible
- D. Use auto left and right margins
Knowledge Check
How can a block with a set width be centered horizontally in its containing block?
Centered fixed-width block is a knowledge check interview exercise that trains prompt interpretation, explicit assumptions, a concrete response, and a clear explanation of tradeoffs. The catalog marks it as medium difficulty. It focuses on Frontend Foundations, CSS Box Model. The signed-in workspace provides the tools for the round and evaluates the attempt against task-specific criteria. Reference solutions, hidden checks, evaluator instructions, and candidate work remain private.