🌍 Public
Viewing a saved revision (read-only)
cde6beadc9a44f42ba14e267aaf3ff9b
div alignment
This example demonstrates how CSS Flexbox aligns nested divs along a shared baseline. A black background container holds two groups—a yellow left section with red, green, and cyan boxes, and a red right block—all arranged using `display: flex`, `flex-direction: row`, and `align-items: baseline`. The left group uses `justify-content: flex-start` and `align-content: flex-start` to pack the child divs tightly. Different heights and line-height values show how baseline alignment affects vertical positioning of text and block elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.