|
Posted by Els on 09/15/05 03:20
Gnarlodious wrote:
> Is there a way to "float" text around a div box the way it can float around
> an image?
yes, and it works exactly the same way. Give the div box a width and
float it like you would an image.
> Also, trying to get away from tables. I want to put a caption under an image
> inside the aforementioned div box ,
> Is there a way to make a box around the image say, with 1em of margin larger
> than the image? Or do I need to force the box to explicitly be a certain
> size? As it is, a div box is unable to know how large an image is.
True. But why would you need to have a 1em margin on the image? If it
is to keep the text away from it, set the width of the div to be the
same as the width of the image, and set the margin on the div. (on
left floated, only a right margin is needed, on right floated, a left
margin).
The added advantage of that, is that if you add a caption below the
image inside the floated div, it will not make the div go wider, but
rather wrap the caption if it were a longer sentence.
> Thanks for any clues.
You're welcome :-)
--
Els http://locusoptimus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Chuck Berry - No Particular Place To Go
[Back to original message]
|