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

Firefox not extending containing div

cream babine
I don't want to post a whole bunch of code here, but I'm having trouble with a page that behaves fine in IE but not Firefox, http://dev.ndbvme.org/index2.html. When I removed the floats from the CSS, http://dev.ndbvme.org/styles.css, it worked, but I had to put them back in to get the 3 column layout to work. Am I missing something simple?

This is the code that should set the containing div:
Expand|Select|Wrap|Line Numbers
  1.  #border  {
  2.     background: #57D9FF;
  3.     background-image: url(images/bg.jpg);
  4.     background-repeat: repeat-y;
  5.     border: #57D9FF solid 2px;
  6.     width: 825px;
  7.     text-align: left;
  8.     margin-left: auto;
  9.     margin-right: auto;
  10. }
I ran CSS and HTML validators,too, but wasn't able to find the problem. Any help would be appreciated. Thanks!
Jul 10 '07 #1
2 1401
drhowarddrfine
7,435 Expert 4TB
Elements are never to expand to contain floated elements. This is a bug in IE. To make modern standards compliant browsers, such as Firefox, do this, add 'overflow:auto' to the containing divs CSS. This tells the containing element to expand to contain elements that overflow it.
Jul 10 '07 #2
Yeah, I realized that IE was probably the culprit. Thanks for answering my call for help tho.
Jul 11 '07 #3

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

Similar topics

0
by: Matthew Barnes | last post by:
I was wondering if there would be any interest in extending the struct.unpack format notation to be able to express groups of data with parenthesis. For example: >>> data =...
17
by: pasdecrap | last post by:
The following code will produce similar results in IE6 and firefox 1.0.4 however the left margin in FF is 4 pixels and in IE it is 5. Can anyone see why this is happening? I can't seem to figure...
3
by: ch424 | last post by:
Hi there, I'm using Python 2.4.1 on Ubuntu Linux, and I'm having problems extending python in C: The C code is below: #include <Python.h> #include "ni488.h"
15
by: Dan | last post by:
Hi. I've got the following line of code which works fine in IE ... line_1_numbers = document.getElementsByTagName ('table').rows (0).cells (0).innerText; But it Firefox, it barks saying: ...
12
by: TC | last post by:
IE 6 Firefox looks just fine. I have run my html and css through the W3C validator. The html is fine and the css gets the following: "Line : 3 (Level : 1) You have no color with your...
2
by: ranger7419 | last post by:
I'm trying to figure out why this script will work in IE 6 but not Firefox, and so I need someone here with a far better grasp on javascript to explain this. Basically, I have a page with several...
3
by: ffrugone | last post by:
I am creating a blog and I have a problem which seems fairly common: Within the content of the posts I sometimes have floated images. The comments bar that follows each post will not clear the...
2
by: TheHobbit | last post by:
Hi there I am a real newbie to CSS so please excuse any daft questions! I am trying to create a page with a header that contains a small square logo in top left corner with 2 longer divs to the rigt...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.