473,586 Members | 2,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

firefox table captions

In MSIE table captions are displayed at the same size as content. But
in Firefox the text displays at browser default, It also exceeds the
width of the table and the excess is hidden if the table is enclosed in

a bounding div.

If caption is given a font-size (eg 0.8em) with CSS text it displays
correctly, however MSIE then shows the text too small.
Is there any way of applying a font-size to firefox table caption text
while keeping the correct display in other browsers? And also of
preventing the caption width exceeding that of the table?

Nov 1 '06 #1
7 5936
VK
In MSIE table captions are displayed at the same size as content. But
in Firefox the text displays at browser default, It also exceeds the
width of the table and the excess is hidden if the table is enclosed in
Gecko browsers (incliding Firefox) implement W3C table box model. In
this (rather weird) model <captionand <tableare two separate
elements floating in an abstract "table frame" box which is not visible
and not DOM-accessible. That is despite the fact that you still have to
put <captioninsid e <tabletag. There is a number of glitches caused
by this not-so-bright standard, see for instance
"table caption 1px jog"
<https://bugzilla.mozill a.org/show_bug.cgi?id =333643- or your own
case.

You may try:

TABLE CAPTION {
font-size: 0.8em;

/* this will be parsed by IE only: */
font-size: expression("1em ");
}

Nov 1 '06 #2
"VK" <sc**********@y ahoo.comwrote in
comp.infosystem s.www.authoring.stylesheets:
>In MSIE table captions are displayed at the same size as content. But
in Firefox the text displays at browser default, It also exceeds the
width of the table and the excess is hidden if the table is enclosed in

Gecko browsers (incliding Firefox) implement W3C table box model. In
this (rather weird) model <captionand <tableare two separate
elements floating in an abstract "table frame" box which is not visible
and not DOM-accessible. That is despite the fact that you still have to
put <captioninsid e <tabletag. There is a number of glitches caused
by this not-so-bright standard, see for instance
"table caption 1px jog"
<https://bugzilla.mozill a.org/show_bug.cgi?id =333643- or your own
case.

You may try:

TABLE CAPTION {
font-size: 0.8em;

/* this will be parsed by IE only: */
font-size: expression("1em ");
}
Text of an interactive HTML page posted as a Bugzilla comment which
demonstrates the Table Caption defect in Firefox/Mozilla browsers.

https://bugzilla.mozilla.org/show_bu...omment_text_10
Is there a "official" test suite that even bothers to determine the
correct styling of table captions, or is it every browser maker for
himself in the world of Undefined Recommendations ?


Nov 2 '06 #3
VK
Is there a "official" test suite that even bothers to determine the
correct styling of table captions, or is it every browser maker for
himself in the world of Undefined Recommendations ?
<http://www.w3.org/TR/CSS21/tables.html#q5>
"...the table box generates an anonymous box that contains the table
box itself and any caption boxes (in document order). The caption boxes
are block-level boxes that retain their own content, padding, margin,
and border areas, and are rendered as normal blocks inside the
anonymous box."

The idiots who invented this even bothered to draw a picture
illustrating their "creative" ideas (see the link). I hold my breath
that they were co-called "invited expert" ant that they are by now back
to the bar or wherever the hell they were invited from.
This way there cannot be any complains to Mozilla: they did exactly and
literally what W3C told them to do. Anyone doesn't like: address your
complains to W3C first.

The other producers simply have chosen common sense over specs.

Nov 2 '06 #4
"VK" <sc**********@y ahoo.comwrote in
comp.infosystem s.www.authoring.stylesheets:
>Is there a "official" test suite that even bothers to determine the
correct styling of table captions, or is it every browser maker for
himself in the world of Undefined Recommendations ?

<http://www.w3.org/TR/CSS21/tables.html#q5>
"...the table box generates an anonymous box that contains the table
box itself and any caption boxes (in document order). The caption boxes
are block-level boxes that retain their own content, padding, margin,
and border areas, and are rendered as normal blocks inside the
anonymous box."

The idiots who invented this even bothered to draw a picture
illustrating their "creative" ideas (see the link). I hold my breath
that they were co-called "invited expert" ant that they are by now back
to the bar or wherever the hell they were invited from.
This way there cannot be any complains to Mozilla: they did exactly and
literally what W3C told them to do. Anyone doesn't like: address your
complains to W3C first.

The other producers simply have chosen common sense over specs.
Really???

Look the figure in section of your cited link.

It shows the bottom margin of the caption being measured with respect to
the first row of table cells.

Now you set the bottom margin of the caption to zero. Do you get the
caption box (its extent seen by using a background-color so that you can
see it?) touching the first row of table cells?

Should that NOT be the case?

The "official" caption TOP margin is coincident with the table TOP margin,
which does NOT happen to be the top margin of the first row of table cells
(which ought to drive anyone crazy: because the W3C recommendation
simultaneously seems to be saying that the caption is independent of the
table and also part of the table!!).

So should the extent of the caption be the space that it fills up
dependent upon its (textual) content? Or should it be with respect to
its obligations to be part of the table, and certainly with respect to its
position relative to the first row of table cells with top-positioned
captions?

This is probably not a problem for people who use captions and table cells
with IDENTICAL background colors which are also identical with the
background color of the table's (parent) container.

But when people actually want to use color (background colors), they are
in for a nightmare in styling things in a way that they look not just
nice, but even comprehensible, in 99% of the browsers used.

Again the question is put to you: if the caption bottom margin is zero,
then the caption should touch the top row of table cells and FF violated
the recommendation, right?
Nov 3 '06 #5
VK
This way there cannot be any complains to Mozilla: they did exactly and
literally what W3C told them to do. Anyone doesn't like: address your
complains to W3C first.
Really???
Well, I guess I have to take my words back.
CAPTION is screwed very severely on Firefox. To my surprise not a damn
thing is changed on 2.0

This liquid body layout demo:
<http://jsnet.sourcefor ge.net/tmp/caption.html>
shows that Firefox simply treats CAPTION as a block element before
TABLE element w/o any connection between each of them (just like
<div>somethin g</div<div>somethi ng</divwould go).

As a consolation IE retains the expected behavior *but* the liquid
layout gets nucked completely, which is even more serious I think.

Even W3C "Sweet heart" Amaya gets choked on CAPTION.

Opera gets it in the most right way but - as seems - messes up with
collapsing margings.

I think it should be a "Acid Table" test written and any producer
should be discouraged to pass/announce Acid2 test until "Acid Table"
is passed with full success. Otherwise it is like applying to a higher
school w/o having finished junior high.

Nov 3 '06 #6
In article <11************ **********@e3g2 000cwe.googlegr oups.com>,
"VK" <sc**********@y ahoo.comwrote:
This way there cannot be any complains to Mozilla: they did exactly and
literally what W3C told them to do. Anyone doesn't like: address your
complains to W3C first.
Really???

Well, I guess I have to take my words back.
CAPTION is screwed very severely on Firefox. To my surprise not a damn
thing is changed on 2.0
A number of things are seriously borked with FF's html/css rendering
of tables, in no small part because the html4 and css2 specs say
conflicting things. Fixes are a very long way off:

https://bugzilla.mozilla.org/show_bug.cgi?id=915

Comment #270 pretty much sums it up. And I quote:
It's the longest bug i'v seen...
Here is my idea:
can we introduce a new pseudo-class?

No, this bug must not be solved! Ever!

The bug is a natural paradoxon in Mozilla. There is a theory which states
that
if ever anybody discovers a solution to it, Mozilla will instantly disappear
and be replaced by something even more bizarre and inexplicable.

However, there is another theory which states that this has already happened
with one or two other weird design bugs that were irresponsibly subjected to
resolution.
Nov 3 '06 #7
VK
https://bugzilla.mozilla.org/show_bug.cgi?id=915
Comment #270 pretty much sums it up.
These are emotions, not a constructive answer. Any widely used software
is a regular holly mess of patches, emergency stability fixes,
compatibility workarounds, security locks etc. Usually any new item
from the list brings an avalanche of other items and so on.

A pictorial sample of this in application to say Microsoft JScript can
be found at
<http://blogs.msdn.com/ericlippert/archive/2006/09/27/774117.aspx>

Inevitably some day the moment comes then you start getting
"unexplaina ble behavior" back. Say (rather close to a real sample) if
you are typing "abrakadabr a" and pressing Ctrl key the system hangs up:
but only if the mouse pointer is off the screen. But it doesn't hand up
in any case if 3rd party X program is installed: but X program gets its
printing nuked. From this point forward you have a choice i) spend your
life time trying to find the real reason or ii) just smash everything
and start from the ground. Everyone chooses the 2nd option so far: this
is how "fully rewritten, majorly improved" versions are appearing.

Mozilla is in the most difficult situation I guess because the code is
open. It means that all mess others have hidden under respectfully
looking .exe and .dll - all this mess would be exposed to the public.
So maybe it is a (subconscious) desire to "keep the underwear clean" as
you cannot hide it. I personally still would prefer CAPTION and other
basic things working as they were for the last 10-15 years; even if
some internal C++ proc will get a funny look because of that.

At the same time I do realize that Mozilla is having hard time in
paying back for doing the initial project so strictly and literally by
W3C papers. Many (way too many IMHO) of these papers were utopias a la
Saint-Simon and Fourier: thus maybe something great to read before to
go to bed - but a total disaster if one tries to implement it in the
real life.

Nov 3 '06 #8

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

Similar topics

3
1714
by: matt | last post by:
I have this bit of code that opens a file, reads it line by line, and prints the filename into an image on screen, so i get a big list of images on the page. However I want it to output into a table so I can have 2 photos side by side as it goes through, is there any way of manipulating the code to output one line into one cell and the next...
9
3340
by: eli.h... | last post by:
Hi, I'm trying to create a page with thumbnails that will fill all the available space. Like, let's say, MSWindows folder in thumbnails view. I want it to look like: O O O O O O O O O O O on wider screen,
18
3802
by: Greg G | last post by:
http://mysite.verizon.net/gdguarino/indexnew.htm It's not a high priority site, just some of my photos throughout the years. The address above is an experiment for a new home page. My intended layout can be seen with Firefox or Opera. In IE the "slides" don't "fill the grid". Does anyone here know why? The CSS follows . DIV.slide is the...
2
1450
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild, AppendChild, making width grow? Hi,
3
2752
by: Daniel M | last post by:
I'm building a medium-scale data-entry web application, which involves creating data entry forms, record listings and detail screens for lots of database tables. Rather than designing a series of similar web pages for each table I'm looking into recording metadata about tables / columns in the database and using this to determine...
2
1377
by: harambeegirl | last post by:
I have read the CSS tutorial at W3Schools.com. It states that the caption-side property is not supported in IE6. If I want to add captions to my images, what else can I do?
9
7256
by: Neal | last post by:
http://www.brassattackofspringfield.com/gigs.html CSS at http://www.brassattackofspringfield.com/default.css Opera and IE render caption as desired. Firefox does not. Why? And is there a fix?
2
3014
rustaferd
by: rustaferd | last post by:
I have created VBA code that will automatically generate Table and Figure captions in a Word document, but when I run the code that should automatically generate Table and Figure references, I get a run-time error '4198'. I need help figuring out why this is occuring and how to fix it. I have the code I would be happy to post if there is...
3
2418
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a couple of the Firefox is munging up. So, on my information page there is a gridview in the content section of the page. The masterpage contains...
0
7841
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8339
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5392
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1184
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.