473,396 Members | 2,034 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 Float problem

I can't seem to get float to work at all in Firefox, but it works just fine in IE7. I'm using FireFox 2.0.0.6. This seems so basic I can't believe it is a bug, but I just can't understand why it doesn't work for me.

you can check it out here:

http://www.vineyardspecialties.com/newIndex5.html
http://www.vineyardspecialties.com/style5.css

Thanks
Sep 7 '07 #1
2 2448
I seem to have discovered the issue:

This worked fine:
<div id="one">text</div>
<div id="two">text</div>
#one
{
float: left;
}


#two
{
clear: left;
}

but I needed this:

#one
{
float: left;
}


#two
{
float: left;
}


which wasn't working
until I added this:


#one
{
float: left;
width: 30px;
}


#two
{
float: left;
width: 30px;
}

Seems it Firefox needs widths and IE 7 doesn't. Mystery solved!
Sep 8 '07 #2
drhowarddrfine
7,435 Expert 4TB
It's no mystery, the bug, as usual, is with IE. If there is no width, the div should collapse to nothing. IE doesn't follow the rules. After all, IE7 is nine years behind web standards.

Never, ever use IE as a reference for how things should work. Always, always use a modern browser, such as Firefox, Opera or Safari.
Sep 8 '07 #3

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

Similar topics

18
by: Niels | last post by:
Hi group, I have some problems with clearing floated divs. My usual method works fine in Konqueror, but not in Firefox. Here's an example: <html><body> <div id='left' style='float:left;...
10
by: Jesper Rønn-Jensen | last post by:
Hope you can help me out on this one. I have a a box that is floated right. Below (in the normal float) I have a wide table. <body> <div style="float:right; width:200px">...</div> <p>This...
0
by: smokeyd | last post by:
smokeyd Sep 26, 2:12 pm show options Newsgroups: alt.html From: "smokeyd" <tom_bur...@umbro.co.uk> - Find messages by this author Date: 26 Sep 2005 06:12:11 -0700 Local: Mon, Sep 26 2005...
1
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a...
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...
7
by: Xah Lee | last post by:
Look at this page http://xahlee.org/emacs/wrap-url.html Look at it in Firebox, look at it in Safari, in Opera, and look at it in Microsoft Internet Explorer. The only fucked up case, is...
5
by: givitumee | last post by:
I have a problem with my website: http://www.eecs.tufts.edu/~pgoran01/abet/ I'm using tabbed menus, all of them pop up when you login. However, the interface looks good in firefox but when I...
11
victorduwon
by: victorduwon | last post by:
Hey guys, I have built a suckerfish navigation menu using CSS and HTML with unordered lists. I was testing this menu in Safari, and it came out good. When I finished I tested it in firefox and...
2
AutumnsDecay
by: AutumnsDecay | last post by:
Hey there. I'm redesigning my website, and before I get too far, I want the layout to work correctly. In IE and Opera, the issue is non existant, however in Firefox, it's annoying. ...
3
by: Steve | last post by:
Hi All I have an asp.net 2.0 website with the following css file It uses Master pages and in Firefox 3.04 for windows only, 3 of the web pages don't display the Master page properly The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
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
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
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.