Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CSS Floats

Public visualization

CSS Floats

0 stars1🌍 Public
WWRCIECH
Last edited Jan 31, 2023
Created on Jan 30, 2023

This example demonstrates how CSS floats affect the layout of text and block elements within an HTML document. It uses standard HTML elements and the CSS properties `float`, `margin`, and `display: flow-root` to create left- and right-floating black squares that wrap surrounding paragraph text. The page pulls the Roboto font from Google Fonts via `@import` and applies it to the body, while the `section` element showcases `flow-root` to contain nested floats. No JavaScript or external visualization libraries are used; the effect relies entirely on core CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed