Skip to main content
100%

div alignment

✓ Published0🌍 Public
AAndrea Picciau
Last edited Oct 4, 2021
Created on Oct 4, 2021
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes