467,879 Members | 1,099 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,879 developers. It's quick & easy.

forcing the div to include the img

I have a series of divs that include images, floated left. Because the
images float, the div is not forced to include the img, with the result
that putting margings on the div does not keep the images from abutting
one another:
http://www.houndsofheaven.com/additi...004/error.html
the blue dashed outlines the divs
what I want is to have each div enclose the picture and the relevant
text, with the text flowing around the image.
--
Bill Drescher
william {at} TechServSys {dot} com

Jul 20 '05 #1
  • viewed: 4244
Share:
2 Replies
Els


bill drescher wrote:
I have a series of divs that include images, floated left. Because the
images float, the div is not forced to include the img, with the result
that putting margings on the div does not keep the images from abutting
one another:
http://www.houndsofheaven.com/additi...004/error.html
the blue dashed outlines the divs
what I want is to have each div enclose the picture and the relevant
text, with the text flowing around the image.


Before the end of the enclosing div, put in another div,
with style="clear:both". This will make the div enclose the
images in it.
http://www.complexspiral.com/publica...aining-floats/

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #2
Els wrote:


bill drescher wrote:
I have a series of divs that include images, floated left. Because
the images float, the div is not forced to include the img, with the
result that putting margings on the div does not keep the images from
abutting one another:
http://www.houndsofheaven.com/additi...004/error.html
the blue dashed outlines the divs
what I want is to have each div enclose the picture and the relevant
text, with the text flowing around the image.

Before the end of the enclosing div, put in another div, with
style="clear:both". This will make the div enclose the images in it.
http://www.complexspiral.com/publica...aining-floats/

THanks

--
Bill Drescher
william {at} TechServSys {dot} com

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by pdectm | last post: by
12 posts views Thread by Ritz, Bruno | last post: by
21 posts views Thread by CoffeeGood | last post: by
10 posts views Thread by Lynn McGuire | last post: by
4 posts views Thread by ATS16805 | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.