473,324 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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
2 4388
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: pdectm | last post by:
I'm trying to prototype an application which runs multiple python scripts, each in its own interpreter and OS thread. I've not been able to forceable stop a script which does not respond to a...
12
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
6
by: Doug | last post by:
Does anyone know how to force interop to use a stdcall interface on the COM objects it creates instead of the cdcall interface that is standard? This is very importiant for my project. I need to...
40
by: Neo The One | last post by:
I think C# is forcing us to write more code by enforcing a rule that can be summarized as 'A local variable must be assgined *explicitly* before reading its value.' If you are interested in what...
3
by: Art Thomas | last post by:
We are using our own custom JavaScript validation as well as .Net validation. However, when we include our custom validation on a page, ..NET does not render/write the...
21
by: CoffeeGood | last post by:
Hi folks, I have a 64-bit machine and on this machine I want to run an old program that was written to assume that longs are 32 bits. I've discovered however that gcc on this machine...
10
by: Lynn McGuire | last post by:
Is there anyway to force code to be inline other than making that code a macro ? We have about 100 lines of code that is duplicated using a macro in about a dozen places. We would rather make...
4
by: ATS16805 | last post by:
Hi. I wonder if it's possible to "force" a browser to "switch to SSR mode" for any given document. Specifically, I'm looking for a solution, not to a User Agent issue (i think), but a coding idea;...
5
by: H.S. | last post by:
Hello, Here is a little question. I was reading up on the FAQ on pointers: http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.6 and wanted to see what g++ (ver. 4.1.3) does if it...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.