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

Seemingly-simple valid CSS-styled table matter renders diff in FF1.0, IE6

Hello everybody --

Forgive my multi-posting my question. I posted first to ciwah, but I
learned that ciwas is the better group for this CSS question.

The problem has me stopped. The page:

http://www.key-horse.com/fftst.html

is rendered completely differently by Firefox 1.0 and IE 6.0. The code
seems to me perfectly straightforward and simple: show two small tables
side-by-side and top-aligned when the browser window is wide enough,
else show the tables arranged vertically. Both of the tables and the
div that contains them have 1px borders.

My CSS must be wrong: IE6.0 does as I expect, whereas FF1.0 does
something surprising, meaning:

1. Tables look to be only one row deep in FF;
2. Tables seem to be bottom-aligned in FF; and
3. In FF, the tables escape their 1px-blue-bordered containing div.

How shall I style these two tables so they render as I wish them to?

Just one note: someone suggested in ciwah that I might float or
otherwise position these tables. Instead, I use display: inline because
I want to let the browser treat the two tables as simple inline
elements without any positioning. Is there something wrong with that
usage? Some implication I'm not understanding? The idea of this
treatment is to accomodate lots of displays, especially mobile devices.
Thanks!

-- Pete

Jul 21 '05 #1
6 1958
"Pete" <pe*****@yahoo.com> wrote:
is rendered completely differently by Firefox 1.0 and IE 6.0. The code
seems to me perfectly straightforward and simple: show two small tables
side-by-side and top-aligned when the browser window is wide enough,
else show the tables arranged vertically.
This is far from straight forward due to Mozilla's lack of support of
the required "inline-table" css value.

You may be able to hack around that by setting the display value to
"inline" first (followed by inline-table), but be warned that Mozilla
does weird things when you do that, and it has bugs concerning usage of
the vertical-align property.

IE also doesn't support inline-table, but IE is so stupid that
display:inline actually does make the table act like an inline-table.
Just one note: someone suggested in ciwah that I might float or
otherwise position these tables. Instead, I use display: inline because
I want to let the browser treat the two tables as simple inline
elements without any positioning. Is there something wrong with that
usage?


Apparently you missed that this person also told you that setting the
display property of a table to "inline" is not correct. Given the
problems that Mozilla poses floating may be the best way if the tables
do not need to be centered, and if you know how to avoid the drawbacks
associated with floating.

--
Spartanicus
Jul 21 '05 #2
Spartanicus wrote:

<< Apparently you missed that this person also told you that setting
the display property of a table to "inline" is not correct. >>

This person told me: << You seem to have set display: inline for your
tables. If this is taken seriously, it means that your table becomes
just inline text, like the content of a paragraph. >>

This person describes exactly what I'm trying to do. I don't see the
words "not correct"; and I believe the spec says the usage is correct,
as well:

http://www.w3.org/TR/REC-CSS2/visure...ropdef-display

But let's forget that, because none can doubt that the real standard of
correctness is the collection of browsers. It has to work in extant
browsers no matter what the spec says. If the usage doesn't work, then
that part of the spec is just pure gas and a waste of everybody's time
because the feature may not be used on the WWW any time in the next ten
years.

This person also said: << You would probably want to use float: left
instead. Or maybe positioning. >>

And you say: << Given the problems that Mozilla poses floating may be
the best way if the tables do not need to be centered, and if you know
how to avoid the drawbacks associated with floating. >>

Absolutely, no question. But I've killed myself trying to float these
tables and I haven't succeeded. As you say, I don't know how to avoid
the drawbacks associated with floating.

If you can point me to a site that tells these drawbacks, please do. If
you can tell me these drawbacks, please do. If there's a cookbook that
has a recipe for us all, tell me about it. I'm frustrated, I'm
desperate, and I'm listening.

Thanks for your response.

-- Pete

OT: You know, many of the cognoscenti evangelize for CSS-based layout.
But for the occasional, casual user there is always an insurmountable
gotcha' somewhere down the line with CSS. Always some roadblock that
will not yield. Always some useful feature in the spec that some
browser ignores or gets wrong. The hours wasted in trying to do
CSS-based layout make it a poor investment for anyone whose middle name
isn't Meyer. Or this person's.

Jul 21 '05 #3
Pete wrote:
Spartanicus wrote:

<< Apparently you missed that this person also told you that setting
the display property of a table to "inline" is not correct. >>

This person told me: << You seem to have set display: inline for your
tables. If this is taken seriously, it means that your table becomes
just inline text, like the content of a paragraph. >>

This person describes exactly what I'm trying to do. I don't see the
words "not correct"; and I believe the spec says the usage is correct,
as well:

http://www.w3.org/TR/REC-CSS2/visure...ropdef-display

But let's forget that, because none can doubt that the real standard of
correctness is the collection of browsers. It has to work in extant
browsers no matter what the spec says. If the usage doesn't work, then
that part of the spec is just pure gas and a waste of everybody's time
because the feature may not be used on the WWW any time in the next ten
years.

This person also said: << You would probably want to use float: left
instead. Or maybe positioning. >>

And you say: << Given the problems that Mozilla poses floating may be
the best way if the tables do not need to be centered, and if you know
how to avoid the drawbacks associated with floating. >>

Absolutely, no question. But I've killed myself trying to float these
tables and I haven't succeeded. As you say, I don't know how to avoid
the drawbacks associated with floating.

If you can point me to a site that tells these drawbacks, please do. If
you can tell me these drawbacks, please do. If there's a cookbook that
has a recipe for us all, tell me about it. I'm frustrated, I'm
desperate, and I'm listening.

Thanks for your response.

-- Pete

OT: You know, many of the cognoscenti evangelize for CSS-based layout.
But for the occasional, casual user there is always an insurmountable
gotcha' somewhere down the line with CSS. Always some roadblock that
will not yield. Always some useful feature in the spec that some
browser ignores or gets wrong. The hours wasted in trying to do
CSS-based layout make it a poor investment for anyone whose middle name
isn't Meyer. Or this person's.


i think the easiest to obtain a correct layout is by placing these 2
tables inside a 3rd table. (good old tables)

gl
martin
Jul 21 '05 #4
"Pete" <pe*****@yahoo.com> wrote:
<< Apparently you missed that this person also told you that setting
the display property of a table to "inline" is not correct. >>

This person told me: << You seem to have set display: inline for your
tables. If this is taken seriously, it means that your table becomes
just inline text, like the content of a paragraph. >>

This person describes exactly what I'm trying to do.
No he doesn't, disregarding the fact that to make the statement fully
correct tr and td would also have to be set to inline, having all
content within a table rendered inline is *not* what you want, you are
looking to have the table itself act as an inline element, but the
content in it to stay in tabular rendering.
But let's forget that, because none can doubt that the real standard of
correctness is the collection of browsers.
Bee shit.
It has to work in extant
browsers no matter what the spec says.
That's a different matter.
If the usage doesn't work, then
that part of the spec is just pure gas and a waste of everybody's time
Bee shit again.
because the feature may not be used on the WWW any time in the next ten
years.
Of course it can, how do you propose to get what you want in the many
browsers that *have* implemented this part of the spec (Opera, Safari,
iCab etc.)? The answer often is that you use the correct property value,
then you can attempt to work around the limitations of the relevant
browsers that have not implemented it.
This person also said: << You would probably want to use float: left
instead. Or maybe positioning. >>

And you say: << Given the problems that Mozilla poses floating may be
the best way if the tables do not need to be centered, and if you know
how to avoid the drawbacks associated with floating. >>

Absolutely, no question. But I've killed myself trying to float these
tables and I haven't succeeded. As you say, I don't know how to avoid
the drawbacks associated with floating.
http://www.spartanicus.utvinternet.ie/test/pete.htm
OT: You know, many of the cognoscenti evangelize for CSS-based layout.
But for the occasional, casual user there is always an insurmountable
gotcha' somewhere down the line with CSS. Always some roadblock that
will not yield. Always some useful feature in the spec that some
browser ignores or gets wrong. The hours wasted in trying to do
CSS-based layout make it a poor investment for anyone whose middle name
isn't Meyer. Or this person's.


Using css for layout is indeed far to difficult given IE's and to a
lesser extent Mozilla's current limitations, this limits what can be
achieved in these browsers. There are work arounds for some of the
problems, but due to the fundamental unsuitability of the methods used
to work around the limitations of some browsers, they require a level of
understanding that is beyond the casual user. Although this is most
regrettable, it does not form an argument for ignoring css and the
numerous benefits it brings, especially for professional authors, or non
casual amateurs.

--
Spartanicus
Jul 21 '05 #5
> Pete wrote:
http://www.key-horse.com/fftst.html Spartanicus wrote: http://www.spartanicus.utvinternet.ie/test/pete.htm ... they require a level of understanding that is beyond the casual user.


..clr{clear:both}
<div class="clr"></div>

nice trick !! compliments ! (learned something) :)
Jul 21 '05 #6
Spartanicus:

<< ... having all content within a table rendered inline is *not* what
you want, you are looking to have the table itself act as an inline
element, but the content in it to stay in tabular rendering. >>

Yes, of course you are right: that's what I was looking for. And so is
this:

<< http://www.spartanicus.utvinternet.ie/test/pete.htm >>

Beautiful! Exactly what I needed. Thank you so much! I'm very grateful
to you.

-- Pete

Jul 21 '05 #7

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

Similar topics

1
by: lawrence | last post by:
Please look at these few lines of code. You'll see that I keep echoing out the variable $name. And each time, I'm getting the correct result. But then, when it is used in an error statement, it is...
3
by: Sander Janssen | last post by:
Hello, I have this peculiar problem concerning MS SQL Server. My company works with an mailing application (ASP) which uses SQL Server as it's repository. What I want to do is send data...
3
by: Sean Quinn | last post by:
Hi, I don't know if anyone has run into similar problems, but it seems like when I use `require_once(...)' with files that contain functions I get an error indicating that it can't redeclare the...
1
by: Lance Orner | last post by:
I wrote this letter to a colleague, and I thought I'd share it here: --- We had a problem with pointers being passed between managed C++ and unmanaged C++ code, but it only occurred once in...
0
by: matt | last post by:
Hi,Hope someone can help me on this infuriating problem. We have several pages containing different user controls which run fine then strangely output the following error. The problem can then be...
6
by: Chris Ashley | last post by:
I have been tearing my hair out (or indeed, what's left of it) all day with this one. I'm not sure if it's a .NET issue, a server issue or anything else and would appreciate any guidance. ...
16
by: Julie Lerman | last post by:
Okay, so I'll try here now <g> I've been battling this problem for over a week now. So, if nothing else, hopefully my little tale of woe will be entertaining. But I'm really hoping someone...
13
by: mfreeman | last post by:
The minimal code (VB.NET 2003) needed to show this problem is shown below. All I do is loop through the records in the table and update them without making any changes. Out of 600 records, about...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.