Home of J. Stuart J. Creative
The Minneapolis skyline with Stone Arch bridge in foreground.

Floated Elements with Javascript

A quick and dirty jQuery script to collapse a parent element when floated. This allows the element to be centered using [ margin: 0 auto; ]

See the Pen AHjdo by James Johnson (@jstuartj) on CodePen.

Copyright © 2024, J. Stuart Johnson