Search code examples
cssw3c

CSS child bigger than parent allowed?


Quick question.

I know i can make child div bigger than parent, but is it allowed by w3c? Is it against some rules? Any performance problems?


Solution

  • There are many cases where you would need an overflow in the parent div, with a larger child div: for example, a fixed-position content frame.

    And there should be no performance impediment; it should be around the same as rendering the child div as a sibling of the parent.