Previous Message
Next Message

Centering Floated Images

Sent by Steve Clay on 29 September 2005 16:04


Thursday, September 29, 2005, 11:26:27 AM, Matt Harris wrote:
> I have a group of floated images which wrap to the next line as the page
> width changes. Inevitably, a few stranglers will be on the bottom row, and
> of course, they will be floated left. Is there a way to center these images
> and achieve the same wrapping effect?

Don't float.  IMGs are already inline, just leave em be and set
text-align:center on the container.  Use margins on the images to adjust
spacing.

Steve
-- 
http://mrclay.org/ : http://thefrenchhorns.com/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: