473,414 Members | 1,948 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,414 software developers and data experts.

New to float -- problems in firefox!

1
The problem page is here: http://kihre.com/portfolio/ibuenacasa/, the css directory is here http://kihre.com/portfolio/ibuenacasa/css

Everything validates, and in IE it appears as it should, but in Firefox everything lines up vertically instead of floating correctly. All my syntax appears to be proper, and I've checked all my semi-colons and brackets.. so at this point I simply dont understand where I've gone wrong. This is my first time really working with floats, so I suspect it's improper usage or something of that nature, or quite possibly some dumb mistake I can't seem to find on my own.

Thanks in advance for any help!
Jul 10 '08 #1
2 1321
drhowarddrfine
7,435 Expert 4TB
Were you using IE or Firefox when you marked this up? IE7 is 10 years behind web standards. Never, ever use IE as a reference for how anything should work.

I'll look at this in a bit.
Jul 10 '08 #2
drhowarddrfine
7,435 Expert 4TB
First quick glance shows this: IE is incorrectly expanding some elements to contain floated elements. This is incorrect behavior while Firefox is performing correctly. In fact, all the modern browsers (FF, Opera and Safari) display the same as Firefox. This is a known bug in all versions of IE.

So, what to do. First, always do your initial design and markup using a modern browser and not IE. Once you get it working in FF or Opera or Safari, then we can hack for IE as all its bugs are known as are the fixes.

In this case, take care in remembering that any parent containers with floated elements inside will NOT expand to contain them, though there are methods to make that happen. (Google for "clearing floats")

Another point. You have a case of 'divitis', that is, a need to enclose everything in a div. Divs are used to contain related elements in a structured way when necessary. But only if necessary. Otherwise, there is no need for them.

I hope you didn't pay for the framework you are using. If so, I hope you can get your money back.
Jul 10 '08 #3

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

Similar topics

2
by: Rainer Birkenmaier | last post by:
Hi Folks, I have 2 little problems: 1) http://birkenmaier.org/b.php IE 6.0 does something weired here: in the red box the first lines of text have a slight indet (2 or 3 pixels only). This...
3
by: Aaron C | last post by:
Hi, I'm having IE6 problems with interpreting stylesheets, and I'm hoping someone could clarify a couple of things for me: First of all,page I'm testing can be viewed at...
5
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...
3
by: yawnmoth | last post by:
float, among other css attributes, is not working as i'd expect it to on the following webpage: http://www.frostjedi.com/terra/dev/test.html In Internet Explorer, there's a space between the...
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...
16
by: Wolfgang Meier | last post by:
Hi, Although it might seem like I am firing out random posts in quick succession this matter is indeed one I thought about for quite some time without coming to a conclusion: Why is it that...
34
by: Xah Lee | last post by:
i have a very simple html doc using the following style: <style type="text/css"> ..x-note {background-color:#afeeee; margin:1ex; padding:1ex; float:right; line-height:130%; width:60ex;...
3
by: camphor | last post by:
hi, I am fairly new to css and am having problems with the 'float' tag in css, go to http://www.christinebec.com/About CB/selected_editorials.htm and view it in firefox browser, how do I fix the...
22
by: ashkaan57 | last post by:
Hi, I am trying to put text on left and right side of the page and used: <div> <span>blah blah</span> <span style="float:right">blah blah</span> </div> The 2nd text does go to the right but the...
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
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
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
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
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...
0
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...

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.