By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,492 Members | 1,955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,492 IT Pros & Developers. It's quick & easy.

forcing the div to include the img

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.