Problem: Legacy Fallback Equal Height Columns for IE11
Problem description
A .layout container holds two .panel elements. The task is to:
Use CSS Grid (
grid-template-columns: 1fr 1fr) in modern browsers.Detect Grid support via
@supportsand apply it.For browsers without Grid (IE11), fall back to
display: tableandtable-cellto maintain equal heights.
Goal
Implement a dual-mode equal height column layout that gracefully degrades for legacy browsers without JavaScript.
Constraints
Only CSS may be used; detect feature support with @supports and fall back accordingly. HTML must remain unchanged.
Sample visual output
Here’s what the output would look like:
Good luck trying the problem! If you’re unsure how to proceed, check the Solution.
Problem: Legacy Fallback Equal Height Columns for IE11
Problem description
A .layout container holds two .panel elements. The task is to:
Use CSS Grid (
grid-template-columns: 1fr 1fr) in modern browsers.Detect Grid support via
@supportsand apply it.For browsers without Grid (IE11), fall back to
display: tableandtable-cellto maintain equal heights.
Goal
Implement a dual-mode equal height column layout that gracefully degrades for legacy browsers without JavaScript.
Constraints
Only CSS may be used; detect feature support with @supports and fall back accordingly. HTML must remain unchanged.
Sample visual output
Here’s what the output would look like:
Good luck trying the problem! If you’re unsure how to proceed, check the Solution.