473,672 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Wrapped text doesn't properly flow round floated div in IE6

Hi there,

I have a problem with some CSS I'm writing and I was looking for a little
help. I have a nav bar at the top and left side of my page in CSS which work
fine. The remaining space has a div which I'm using for body text. Floated
to the right of this are two image boxes and a broken out quotation from the
page (this box is wider than the images). The layout is working, except that
the text in the main section doesn't seem to wrap properly around the wider
quotation box.
The line on level with the top of the box carries on under the box and the
line below the box wraps to the left-edge. I have been fiddling with the
margins etc for ages and I just can't see why this is. Also for some reason
I can't get the text within that box to change height. Font yes but height
no. I'm using IE 6 on Windows XP.

The relevant code follows, the whole page is at
http://staging.proscenia.co.uk/projectmain.html. NB the stylesheet is still
in the document for development purposes but will ultimately be separated
out.

Any advice would be much appreciated.

Best Regards,

Andrew Coulton

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- snip-->
<style type="text/css">
<!--
/* GENERAL STYLES */
body {
margin: 9px 9px 0 9px;
text-align:justify;
padding:0;
background:#000 033;
color:CCCCFF;
font-family: "Tahoma","Arial ",Sans Serif;
font-size:0.8em;
}

/*snip*/

/* MAIN LAYOUT STYLES */

#leftcol {
position:absolu te;
background-color:transpare nt;
margin-top: 110px;
left:2%;
width:96%;
}

#spacer {
margin-left: 180px;
padding-left:20px;
background-color: transparent;
}

#midcol{
position:relati ve;
width:100%;
margin-right:20px;
}

#mainbody{
position:absolu te;
width:100%;
height:100%;
left:0;
top:0;
background-color:#000066;
}

#maintextsectio n{
position:relati ve;
top:0;
left:0;
margin-right:200px;
background-color:#000066;
}

/*snip*/

..imagebox{
float:right;
clear:right;
position:relati ve;
height:auto;
width:auto;
text-align:center;
padding:10px;
margin-left:15px;
background-color:#336699;
border-left:5px solid #000033;
font-size:.8em;
color:#000033;
}

..quotebox{
float:right;
clear:right;
position:relati ve;
width:auto;
min-width:200px;
height:auto;
background-color:#000033;
margin-left:5px;
font-size:1em;
padding:5px 10% 5px 5px;
}
/*snip*/

..QuoteText {
font-family:"Arial Black",Arial,sa ns-serif;
font-size:20px;
color:#CCCC99;
background-color:#336699;
padding-right:5px;
text-align:right;
}
..QuoteAttribut ion {
font-family:"Tahoma" ,"Arial",san s-serif;
font-size:.8em;
color:#000033;
background-color:#336699;
text-align:right;
padding-right:5px;
}

-->
</style>
</head>

<body>
<!--snip-->
<div id="leftcol">
<div id="spacer">
<div id="midcol">
<div id="mainbody">
<div class="imagebox " style="border-bottom:0;">
<img src="C:/Documents and Settings/Andrew/My
Documents/PROScenia/Project Photos/PP02 Romeo/Smaller/Capulet's Ball.jpg"
width=250px; border="0" >
<P>pic:Keith Brame</P>
</div>
<div class="quotebox ">
<P class="QuoteTex t">"I would trust [PROScenia] to organise anything,
flawlessly"</P>
<P class="QuoteAtt ribution">Georg e Tarbuck, Lighting Designer</P>
</div>
<div class="imagebox ">
<img src="C:/Documents and Settings/Andrew/My
Documents/PROScenia/Project Photos/PP02 Romeo/Smaller/Romeo finds
Juliet.jpg" width=250px; border="0" >
<P>pic:Keith Brame</P>
</div>

<P>The Challenge: Replicate WebRef's front page using CSS. The Solution: CSS
and lots of iterations.

Rogelio Lizaolo improves on Kwon Ekstrom's CSS version of WebRef's tabled
home page. Months in the making, the final design successfully duplicates
WebRef's layout without the use of tables. Numerous bugs were discovered in
Netscape and Explorer in how they handle CSS, and we found some elegant
workarounds to these and other problems. What follows is a step by step CSS
layout tutorial that shows how we got to the final design.now lets see what
happens when we keep typing all this text where can it go and what will
happen to it as the rest of the objects move? nothing yet, lets hope that
soon there will be a point when I have typed enough to get a wrap nearly
there one or two more lines should answer the question.</P>

<P>Introducti on
In Evolution of a Home Page Andy King threw down the gauntlet, challenging
readers to duplicate WebRef's tabled (and fabled) home page in CSS. Kwon
Ekstrom came up with a solution, that worked in a number of browsers. After
investigating his solution, I found a few problems with his design, and
thought I'd try and improve on it. </P>
Andy, Kwon, and I went back and forth over a number of months tweaking and
improving my design. What follows is a step-by-step account of my attempt to
duplicate WebRef's table-like layout using CSS, while avoiding some of the
bugs and problems found in other implementations .

The ultimate goal is to create a CSS layout that exactly resembles the
WebReference.co m layout made with tables and also behaves well with small
window sizes and large fonts.
</P></div>
</div>
</div>
<!--snip-->
</div>
</body>
</html>
Sep 24 '05 #1
4 2888
sweep wrote:

I can't get the text within that box to change height. Font yes but height
no. I'm using IE 6 on Windows XP.
You have a number of validation errors. Correct those to see if the
problem goes away.
<http://validator.w3.or g/check?verbose=1 &uri=http%3A//staging.proscen ia.co.uk/projectmain.htm l>
And a couple of CSS errors.
Why are you using HTML 4.01 Transitional? Transitional is for *legacy*
pages too crufty to update. Use Strict.
I suggest developing your page(s) in a modern browser like Firefox or
Opera before working around the defects in IE. Saves time.
The relevant code follows, the whole page is at
http://staging.proscenia.co.uk/projectmain.html. NB the stylesheet is still

All that code was a waste of bandwidth. It's the URL that's useful here.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Sep 25 '05 #2
Thanks for that, I have changed over to 4.01 strict (an oversight on my
part) and fixed the validation errors but I am still having the same
problem.

Interestingly it occurs in Opera, Navigator and IE so it seems to be more
than just an IE problem.

Sorry for posting the code, I wasn't sure about etiquette here, some other
programming newsgroups I've been on prefer code snippets, others prefer it
to be a URL. I'll know for next time.

Best
Andrew
"Jim Moe" <jm************ ***@sohnen-moe.com> wrote in message
news:Ud******** ************@gi ganews.com...
sweep wrote:

I can't get the text within that box to change height. Font yes but
height no. I'm using IE 6 on Windows XP.

You have a number of validation errors. Correct those to see if the
problem goes away.
<http://validator.w3.or g/check?verbose=1 &uri=http%3A//staging.proscen ia.co.uk/projectmain.htm l>
And a couple of CSS errors.
Why are you using HTML 4.01 Transitional? Transitional is for *legacy*
pages too crufty to update. Use Strict.
I suggest developing your page(s) in a modern browser like Firefox or
Opera before working around the defects in IE. Saves time.
The relevant code follows, the whole page is at
http://staging.proscenia.co.uk/projectmain.html. NB the stylesheet is
still

All that code was a waste of bandwidth. It's the URL that's useful here.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Sep 25 '05 #3
On Sat, 24 Sep 2005 21:54:00 +0100, sweep wrote:
I have a problem with some CSS I'm writing and I was looking for a little
help. I have a nav bar at the top and left side of my page in CSS which work
fine.


You may think that but in my Firefox I get nothing at the top except the
word "PROScenia" and in Opera I get a box that scrolls way out to the
right, and unless I get the mouse pointer pixel perfect on the line beneath
the text nothing happens.

In IE I get broken picture links to pictures that I didn't even suspect
were there in FF and Opera as well as the box that scrolls way out to the
right. But apart from the top box is probably close to what you want it to
look like.
Sep 25 '05 #4
sweep wrote:
Thanks for that, I have changed over to 4.01 strict (an oversight on my
part) and fixed the validation errors but I am still having the same
problem.

I've looked at your code. The ID names are confusing and misleading. I
am not going to spend the large amount of time it would take to unravel
your page.
Visit these sites for well described and debugged 3 column layouts.
<http://www.positionise verything.net/>
<http://css-discuss.incutio .com/?page=ThreeColu mnLayouts>
"A List Apart" is especially interesting for menu options.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Sep 26 '05 #5

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

Similar topics

1
5855
by: Vincent | last post by:
I noticed an irritating behaviour of the text-indent property and I wonder if I'm the only one to feel this way about it: it seems that text-indent applies even to floated elements. Although this is probably correct according to the specification (text-indent is inherited), don't you think it makes no sense to apply text-indent to such elements ? Here is an example: I have a paragraph, starting with a clickable image, that's followed by...
0
1769
by: Sue Thackston | last post by:
My first layout. I've got 2 divs, side by side, wrapped in a centered div with a border. I don't want to use a float to get the aforementioned divs to work side by side, so to get this to work, I used a negative margin on the second div that was wrapped. Tried absolute positioning, but that appropriately separates the second div from the normal flow so the wrapper div doesn't keyline properly around it. Is this the proper way to do this or...
1
3525
by: Aaron | last post by:
I'm using relative positioning to move a right-floated image 10px upwards.. Text wrapping around the image should go underneath it once it reaches the bottom of the image, yet it acts as if the image is still in it's original position and doesn't start wrapping until it's 10px below the bottom of the image. How can I work around this? TIA, Aaron
11
7210
by: Robert Bowen | last post by:
Hello all. I have been given mock-ups (in static HTML) of some pages for a site I am working on. The client would like these pages to look exactly as they do now. The problem is that the content is dynamic, it comes from a database. My question -- with CSS (because with HTML tables I don't think it's possible) how can I make my text "flow" in two columns? eg. If there are 100 lines of content, I would like 50 to be in the 1st column, and...
0
2326
by: styler | last post by:
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...
3
3221
by: David Golightly | last post by:
I'm taking a stab at making CSS sparklines - see http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR&topic_id=1&topic= <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title>Sparklines</title> <style type="text/css">
1
4197
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? http://geekarama.co.uk/new_home.html here is the code for new_home.html and following that the CSS...
8
2223
by: Jonathan Sachs | last post by:
I'm trying to compose a list of items, each of which consists of text that wraps around a picture at the left margin. The examples I have seen tell me to do it like this: <p><img src="xxxx.jpg" align="left" width=nn height=nn>zzz zzzzz zz zzzzz...</p> In my case, since the wrapped text includes a headline, I assume I am supposed to do this:
2
2239
by: Jason Carlton | last post by:
Sorry if this goes through twice, I had an error the first time that I submitted. I have a bit of text that has a varying length, and I'm wanting to float text to the right. The problem is that the text needs to wrap to 2 lines instead of 1, and I'm wanting to float the text to the right of the second line. Something like this:
0
8503
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8418
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8944
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8844
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7469
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6254
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5720
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2836
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2091
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.