473,404 Members | 2,114 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,404 software developers and data experts.

Divs not floating properly

I've been building a site that has a quirk in it. It will display just as intended in IE but not firefox. The left "nav" div which is floating left will be forced down to the bottom of the page. The main content area on the right is floating right and stays fine. The weird part is that a refresh will always correct this problem. and the problem will not occur on all the pages though they have identical set-ups.

The site is at 69.89.7.107/floors.php

here is the code for the page i'm working on floors.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Brocks's TRI-CORR&reg; Floors Supplied by Agri-Systems</title>
<meta name="description" content="TRI-CORR aeration flooring to maximize your grain drying systems." />
<meta name="keywords" content="aeration floor, grain bin floors, TRI-CORR, Grain bin, grain bins, grain storage, grain storage system, steel grain bin, Agri-Systems, grain systems, grain system design, grain storage bins, Litchfield, Minnesota, MN, Brock" />
<meta name="robots" content="index, follow" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta http-equiv="Content-Language" content="English" />
<link href="styles.css" rel="stylesheet" type="text/css" />
<script src="includes/menuscript.js" type="text/javascript"></script>
<script src="includes/functions.js" type="text/javascript"></script>
</head>

<body onload="init()">
<? include("includes/main_header.php"); ?>

<? /* content2 = content is shorter than the menu
content = content is taller than the menu */ ?>

<div align="center" class="content2" style="float:right;">
<div style="height:auto;"><br /><br />
<p align="center" class="medTextBold" style="font-size:36px; text-align:center;"><strong>Floors</strong></p>
</div>
<div style="height:auto; padding-left:20px; padding-right:20px; text-align:left;">
<table> content in a table in here
</table>
</div>
<div style="height:auto;"><br /><br />
<img src="images/5F.jpg" alt="Grain Bin FLoor" width="236" height="275" /><br /><br /><br />
<table> more content in a table in here
</table>
</div>
</div>
<div style="background-color:#78B6EF; width:168px; display:table-cell; float:left; height:auto;"><? include("left_menu.php"); ?></div>
<? include("includes/footer.php"); ?>
</div>
</body>
</html>


Please help I can't figure this one out.
Apr 24 '07 #1
5 2305
drhowarddrfine
7,435 Expert 4TB
I don't see the problem in FF2.0
Apr 24 '07 #2
hmm...that's strange. when the page loads try clicking on the "floors" link in the nav menu that seems to be where the problem starts to creep up. Maybe its just my browser I'm gonna have to test it out at home as well and see if it does it there too.
Apr 24 '07 #3
drhowarddrfine
7,435 Expert 4TB
Hope I catch you before you go home. I did see it this time and I'm looking into it.

EDIT: It's hard to debug. I'm wondering if this is a rounding error. Sometimes a browser has to calculate a width and rounding makes it go one way or the other. Try widening #wrapper a few px and see if the problem goes away.
Apr 24 '07 #4
Thanks for the idea. Turns out it was a style="display:table;" in my container div. Apparently this is a known problem with firefox.
Apr 26 '07 #5
drhowarddrfine
7,435 Expert 4TB
I am not aware of any such problems with display:table in Firefox. It does not work at all in IE. Please elaborate.
Apr 26 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Chris | last post by:
Hi, I am pretty new to CSS authoring and find myself in a tricky situation. I have a series of divs (dynamically generated - there could be up to 8) as follows: <div class="person">...
12
by: Michael Ramey | last post by:
Hi, I've have two divs, that are laid out side-by-side. (I'm floating the first div to the left) I need to set up css on these two divs so that the second div is vertically aligned to the...
0
by: Olly | last post by:
I am using the following pure css layout with a header and footer: http://www.fu2k.org/alex/css/layouts/3Col_NN4_FMFM.mhtml The left column floats to the left of the main content (middle...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
26
by: Spondishy | last post by:
Hi, I have a problem with divs and padding in IE6 and Firefox. Basically my example that I have attached works exactly how I want in IE6, but padding is treated differently in Firefox. My...
12
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...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
1
by: StevePBurgess | last post by:
I have a website which, on the main page, has two floating divs. One contains a list of navigation menu items and the other is themain content of the page. Occasionally that div that contains...
4
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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...
0
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
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...
0
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
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,...
0
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...

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.