473,503 Members | 9,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difficult float problem

Here's the problem. I have a webpage with a content box on the right
side taking up about half the width of the page, and having a variable
height (usually around say 400 px tall). And at the left of this box,
I've got a dynamic (database-driven) list of article titles with short
synopses. The problem is that I need the list to continue down the
left side of the right-hand box until the list gets to the bottom of
the right hand box, and once it starts going below the right-hand box,
I need the list to split into 2 columns (using, for example float:left
and float:right) and continue down in this manner the rest of the way
down the page for the duration of the list.

There has to be a way to do this using css. Does anyone know how?
I've got it working in IE by using float:left on every list item so
that they stack up on top of each other while to the left of the
right-hand box, and then spread out below the box, but it doesn't
render correctly in Firefox.

Jan 17 '07 #1
2 2080
Oh, and remember that I can use dynamic styles, as I'm using php and
mysql to generate the lists, but my main problem is knowing when the
list has reached the bottom of the right-hand box and should start
spreading out to 2 columns.

On Jan 17, 6:36 pm, "Joel Byrd" <joelb...@gmail.comwrote:
Here's the problem. I have a webpage with a content box on the right
side taking up about half the width of the page, and having a variable
height (usually around say 400 px tall). And at the left of this box,
I've got a dynamic (database-driven) list of article titles with short
synopses. The problem is that I need the list to continue down the
left side of the right-hand box until the list gets to the bottom of
the right hand box, and once it starts going below the right-hand box,
I need the list to split into 2 columns (using, for example float:left
and float:right) and continue down in this manner the rest of the way
down the page for the duration of the list.

There has to be a way to do this using css. Does anyone know how?
I've got it working in IE by using float:left on every list item so
that they stack up on top of each other while to the left of the
right-hand box, and then spread out below the box, but it doesn't
render correctly in Firefox.
Jan 17 '07 #2
On 2007-01-17, Joel Byrd <jo******@gmail.comwrote:
Here's the problem. I have a webpage with a content box on the right
side taking up about half the width of the page, and having a variable
height (usually around say 400 px tall). And at the left of this box,
I've got a dynamic (database-driven) list of article titles with short
synopses. The problem is that I need the list to continue down the
left side of the right-hand box until the list gets to the bottom of
the right hand box, and once it starts going below the right-hand box,
I need the list to split into 2 columns (using, for example float:left
and float:right) and continue down in this manner the rest of the way
down the page for the duration of the list.

There has to be a way to do this using css. Does anyone know how?
I've got it working in IE by using float:left on every list item so
that they stack up on top of each other while to the left of the
right-hand box, and then spread out below the box, but it doesn't
render correctly in Firefox.
What you describe should work in Firefox. Post a URL and maybe we can
see what the problem is.
Jan 18 '07 #3

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

Similar topics

6
2064
by: Bengt Richter | last post by:
Peculiar boundary cases: >>> 2.0**31-1.0 2147483647.0 >>> int(2147483647.0) 2147483647L >>> int(2147483647L ) 2147483647 >>> >>> -2.0**31
13
2512
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
5
2297
by: Chris Beall | last post by:
See http://pages.prodigy.net/chris_beall/BeallSprings/WC.Deed%20GG.116-17.html using the CSS at http://pages.prodigy.net/chris_beall/BeallSprings/BSstyle.css The page is a transcript of a...
2
5696
by: Dr. Richard E. Hawkins | last post by:
I've googled around, and asked everyone I know, but I still can't find any reference to anyone else having faced this particular IE bug with floats. I've put a page at...
14
2672
by: Glen Able | last post by:
Should it be possible to create a custom class, 'Float', which would behave as a drop-in replacement for the builtin float type? As mentioned in another thread, I once tried this in rather a...
54
8291
by: Andy | last post by:
Hi, I don't know if this is the correct group to post this, but when I multiply a huge floating point value by a really small (non-zero) floating point value, I get 0 (zero) for the result. This...
6
7252
by: James Thurley | last post by:
According to the docs, floats are 32 bit and doubles are 64 bit. So using floats should be faster than using doubles on a 32 bit processor, and my tests confirm this. However, most of the Math...
20
3117
by: ehabaziz2001 | last post by:
That program does not yield and respond correctly espcially for the pointers (*f),(*i) in print_divide_meter_into(&meter,&yds,&ft,&ins); /*--------------pnt02own.c------------ ---1 inch = 2.51...
22
2742
by: Bill Reid | last post by:
I just noticed that my "improved" version of sscanf() doesn't assign floating point numbers properly if the variable assigned to is declared as a "float" rather than a "double". (This never...
0
7207
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,...
0
7294
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,...
0
7361
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...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
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,...
1
5026
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...
0
4693
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...
0
1523
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 ...
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.