make a div containing both the image and the caption, and float the
div.  dont' float the image, just use whatever alignment you need to
get it and the caption to lay out how you want it.

cheers,
barneyb

On Mon, 26 Jul 2004 13:16:13 -0400, Damien McKenna
<[EMAIL PROTECTED]> wrote:
> I've been given the following task:
>
> I've got a page with a 500px div containing text.  I'm displaying an
> image that is to the top-right of the div and it works well (I've got
> the borders, etc, that they want).  Now I need to add a caption to the
> image, have the caption centered underneath the image, and have the
> text wrap around as before.
>
> So far I've had to put some of the text into another div and manually
> adjust its width, but depending on the system this div can end up going
> too far down so there ends up being this inch-high gap which is
> unsightly.
>
> Is there a way to do what I need with pure CSS?  Thanks.
> --
> Damien McKenna - Web Developer - [EMAIL PROTECTED]
> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
> "Nothing endures but change." - Heraclitus
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to