473,545 Members | 582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text Falls Behind Images Contained in Floating DIVs


I am having difficulty with the page located here:

http://tinyurl.com/2zwa9

I am creating a number of image sets (some left-, some right-aligned; an
example of the right-aligned is shown the first figure below) in which
the text accompanying the image sets flows down around them. The image
sets have a single image on top and two immediately below. To create the
effect, I contain the image on top in a DIV and float it, and the bottom
two images are contained in a DIV and floated as well. The accompanying
text appears in the HTML file following the floated DIV elements.

In IE6.x this coding causes the line of text just at the point where the
two bottom images are rendered to fall behind the image rather than break
where the image appears. This line is shown as 'xxxxxx' instead of
'........'. In the URL above, this is seen in the first two image sets,
which have a large amount of accompanying text. I have not tested this
with other http clients to see if they style with a similar defect. Is
the defect in proper style coding, or is this a case of a defect in the
client to implement the specification properly? A suggested workaround
that works for most, if not all, browsers is appreciated.
These figures are prepared for message readers set to a fixed-pitch font:

[images are contained in the boxes; '.......' represent lines of text
'xxxxxx' represents a line of text that flows behind the leftmost of the
pair of images on the page]

+---------------+
............... ............... ... | |
............... ............... ... | |
............... ............... ... | IMAGE |
............... ............... ... | |
............... ............... ... | |
............... ............... ... | |
............... ............... ... +---------------+
xxxxxxxxxxxxxxx +---------------+ +---------------+
............... . | | | |
............... . | | | |
............... . | IMAGE | | IMAGE |
............... . | | | |
| | | |
| | | |
+---------------+ +---------------+
One fix would be to contain all three images in a floated DIV, but which
would exclude the text in an unwanted way like so:

+---------------+
............... | |
............... | |
............... | IMAGE |
............... | |
............... | |
............... | |
............... +---------------+
............... +---------------+ +---------------+
............... | | | |
............... | | | |
............... | IMAGE | | IMAGE |
............... | | | |
| | | |
| | | |
+---------------+ +---------------+
Jul 20 '05 #1
0 2322

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1860
by: David Ehmer | last post by:
I have a page which has text links (the enter buttons) contained in absolutely postioned divs which themselves are contained in relatively postioned divs. The links work fine on most browsers, but IE5 for the Mac does not register these as links. A bit of a problem if your a Mac user! Appreciate your ideas. Link and relevent styles...
9
1594
by: Daz | last post by:
Hello hello! I'm trying to finish off putting my design into HTML and I've come across a problem that I can't get my head around. I've got divs floating in two columns, but I'm having problems trying to put in images and floating them left or right. In safari it leaves a gap inbetween two of my divs and the image overlaps the gap, in IE...
12
2799
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of the floating divs, nothing is cleared. What am I doing wrong ? Here is the url:http://www.reenie.org/test/test5.php Here is the code: <html>...
8
9504
by: Yeow | last post by:
hello, i was trying to use the fread function on SunOS and ran into some trouble. i made a simple test as follows: i'm trying to read in a binary file (generated from a fortran code) that contains the following three floating-point numbers: 1.0 2.0 3.0
9
2505
by: Troy Piggins | last post by:
If I use the code: ----- <div style="text-align: center;"> <a href="photos.php?img=xx1.jpg"> <img src="xx1.jpg" style="padding: 10px;" /> </a> <a href="photos.php?img=xx2.jpg">
8
3512
by: DarkSaturn | last post by:
Is there a method of using the CSS float command on images to contain itself within a single paragraph? The problem I'm running into is trying to use float images on a listing page, I have an image (say 100 pixels high) that is set to float left, the text that I'm floating around it is only 2 lines high (leaving room for additional text below)....
1
4185
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being aligned to the top, along with the slideshow and link buttons, you have to scroll down to see the text - how can I make IE6 display correctly? ...
2
4213
by: benwah1983 | last post by:
Greetings, Here is my problem: The following code shows a div with two small nested divs (images with a title), then the div is closed. Another one opens and a "random text" is displayed. <div style="width: 500px;"> <div style="float: left; padding: 20px;"> Image Title 1<br/> <img src="test.jpg"/> </div> <div...
4
32585
dlite922
by: dlite922 | last post by:
This is just barely above my head when it comes to css. I have a div that needs to contain rows of floating divs, but I need each row not to wrap on to the next one and continue to go right. The user will use a overflow: auto scroll to scroll to see the rest of the divs. illustration: # = === = = === === # = == = = # ==...
0
7391
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7802
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7410
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5962
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5320
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4941
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3438
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1010
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.