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

-- :

css-discuss [EMAIL-REMOVED]]
List wiki/FAQ --
Supported by --
Previous Message
Next Message

Message thread: