473,795 Members | 3,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Divs not floating properly

5 New Member
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.dt d">
<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="descripti on" content="TRI-CORR aeration flooring to maximize your grain drying systems." />
<meta name="keywords" content="aerati on 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="distribut ion" content="Global " />
<meta name="rating" content="Genera l" />
<meta http-equiv="Content-Language" content="Englis h" />
<link href="styles.cs s" 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("includ es/main_header.php "); ?>

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

<div align="center" class="content2 " style="float:ri ght;">
<div style="height:a uto;"><br /><br />
<p align="center" class="medTextB old" style="font-size:36px; text-align:center;"> <strong>Floor s</strong></p>
</div>
<div style="height:a uto; padding-left:20px; padding-right:20px; text-align:left;">
<table> content in a table in here
</table>
</div>
<div style="height:a uto;"><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="backgrou nd-color:#78B6EF; width:168px; display:table-cell; float:left; height:auto;">< ? include("left_m enu.php"); ?></div>
<? include("includ es/footer.php"); ?>
</div>
</body>
</html>


Please help I can't figure this one out.
Apr 24 '07 #1
5 2323
drhowarddrfine
7,435 Recognized Expert Expert
I don't see the problem in FF2.0
Apr 24 '07 #2
jemcgui
5 New Member
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 Recognized Expert Expert
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
jemcgui
5 New Member
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 Recognized Expert Expert
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
4801
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"> <h2>Name</h2> <img src="images/name.gif" alt="Chris" /> <p>Message Here</p>
12
12378
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 first one (in the middle). How can I go about doing this?, both divs contain textual elements and I won't easily know the heights, so absolute positioning is out. I've also tried using the vertical-align selector to no avail. I'm trying to find a...
0
2230
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 column). In the middle column I have 3 divs on top of each other, each of which needs to have a border. To get the borders to display correctly in Netscape 6 and ie5 (windows) I have to put a <br style="clear:both">
15
13507
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 with float. But I can't center two side by side divs. If I float them and give them auto margins, the auto margins are ignored. If I wrap the two floated divs in another div, the two divs have no
26
8409
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 example is below. http://www.villas2u.com/example/test.htm http://www.villas2u.com/example/styles.css I realise that the issue is with the padding of 10px pushing the
12
2821
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> <head>
2
8289
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 have a grey background. When I view the page in Firefox, I get what I hoped for: there is a solid grey rectangle at the top of the website. When I view the page in Internet Explorer 6 (WinXP), there is a gap between two right hand DIVs (i.e. a...
1
1972
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 the menu is longer than the div that contains the main content. This displays perfeclty well on Firefox but on internet explorer the bottom bit of the navigation div is chopped off so that it is the same height as the (smaller) main content div.
4
32615
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
9672
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
9519
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
10435
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
10213
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
10000
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6779
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();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
3721
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.