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

Firefox/gecko tables formatting bug...or clueless coder?

I'm stumped. Visit:

http://positivesweat.com/class.html

....and look at the tables in the middle labeled "morning" and
"evening". Do this in both IE and Firefox.

The tables appear to me to be defined identically (to take up 100% of
the width of the parent table), and indeed IE makes them the same
width, as I wanted and expected. But in Firefox (latest), the "evening"
table is appreciably narrower. Seemingly regardless of the text
contents of each cell.

Am I missing something subtle here or is this a Firefox/Gecko bug?

Thoughts on what's causing this, and on any non-kludgey workarounds,
much appreciated.

cheers /jonster/

Jul 24 '05 #1
5 2508
th************@hotmail.com wrote:

I'm stumped. Visit:

http://positivesweat.com/class.html

...and look at the tables in the middle labeled "morning" and
"evening". Do this in both IE and Firefox.

The tables appear to me to be defined identically (to take up 100% of
the width of the parent table), and indeed IE makes them the same
width, as I wanted and expected. But in Firefox (latest), the "evening"
table is appreciably narrower. Seemingly regardless of the text
contents of each cell.

Am I missing something subtle here or is this a Firefox/Gecko bug?

Thoughts on what's causing this, and on any non-kludgey workarounds,
much appreciated.

cheers /jonster/


First of all, there are 67 HTML errors, some of which involve
tables.

Then, you seem to be using a table to force margins, which should
instead be done with style-sheets. A style-sheet would simplify
your HTML by eliminating nested tables.

Finally, your MORNINGS and EVENINGS tables have no width
specified. As long as the specified ratios of column widths
(indicated as percentages in the <TD> tags) are maintained, these
two tables will have the minimum necessary width to hold their
text. Try adding width="100%" to the two <table> tags.

Even better, fix all the HTML errors and eliminate nested tables.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #2
David:
your MORNINGS and EVENINGS tables have no width
specified. As long as the specified ratios of column widths
(indicated as percentages in the <TD> tags) are maintained, these
two tables will have the minimum necessary width to hold their
text. Try adding width="100%" to the two <table> tags.


I'll try that; thanks. Still interesting to me that IE and Firefox
render it differently, though.

BTW: The whole site is something I inherited (it's NOT my html) and
it's in dire need of a rethink/rewrite from the ground up. At that
point of course stylesheets would be the way to go, but I'm not about
to throw time and energy into the current version...

-jon-

Jul 24 '05 #3

th************@hotmail.com schrieb:

I'll try that; thanks. Still interesting to me that IE and Firefox
render it differently, though.

With HTML errors, you can have all kinds of rendering. Especially
Firefox and other Gecko browers) are prone to that.

If I get a really funny display, I put the page through the validator,
and with a chance of 99%, there will be an error in that page, sometimes
not at the same place, where the funny display occurs.

I don't blame the programmers - as they say: Garbage in, garbage out.
Hans-Joachim

--
Debian will contain the most up-to-date of everything.

Ian A Murdock Mon, 16 Aug 1993 13:05:37 GMT
Jul 24 '05 #4
th************@hotmail.com wrote:

I'll try that; thanks. Still interesting to me that IE and Firefox
render it differently, though.


They're different programs written by different teams with different
ways of interpreting the specification, and differing levels of respect
for the specification. It would be remarkable if they rendered
everything in exactly the same way.
Jul 24 '05 #5
Harlan Messinger wrote:
th************@hotmail.com wrote:

I'll try that; thanks. Still interesting to me that IE and Firefox
render it differently, though.

They're different programs written by different teams with different
ways of interpreting the specification, and differing levels of respect
for the specification. It would be remarkable if they rendered
everything in exactly the same way.


Oh, and that's even when the code is correct. When it isn't, it would be
a miracle for different browsers to have the same rendering.
Jul 24 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: windandwaves | last post by:
Hi Gurus I have a little javascript that works perfectly in IE (for a change), but does not work in Firefox and Opera (no errors though)... You can see the script in action at www.tupelo.co.nz...
4
by: Diffident | last post by:
Hello Guys, I am posting my weird experience on firefox by a piece of code I have written. That piece of code is supposed to be executed when the page is not posted back i.e., for the very first...
2
by: CalSun | last post by:
Greetings, I want users to browse the site with IE since my pages are not well displayed in firefox. I created a client script and hooked it to a Redirect button. This button will show as users...
10
by: Paul Gorodyansky | last post by:
Hi, Ran into the problem today - in INPUT field Firefox executes clean-yp of the content if a user presses Esc, _before_ control goes to the code via onkeydown - and search showed that it's a...
2
by: sveinn | last post by:
Hi all, I've read through this group searching for an answear about this problem. Few have come close but not quite what I need. My problem is this: I'm using Ajax to fetch a new table with...
11
by: Alex.Svetos | last post by:
Hello, I'm trying to get a popup to keep focus when it is re-clicked. The script below is supposed to produce this exact behaviour, however it doesn't work, at least on firefox 1.0.7 and moz...
7
by: Coder | last post by:
Hi I have the following code in java script, it is not giving proper output in FIREFOX but running fine in IE... can anybody help me out to make this run in FIREFOX . <script...
0
by: Kenneth McDonald | last post by:
Sorry for crossposting to several lists, but from what I can tell, what I want to do may involve several different areas of expertise. (None of which I have :-( ) I'd like to use Gecko as the UI...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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...

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.