jaklitsch maya wrote:

>I have a problem with <caption> that I frankly do not
>understand.
> 
>I have been trying to solve it for several hours, and
>can't seem to solve it. 
>
>The IE 6 is rendering my caption of a data table just
>fine but Firefox will not center it to the table.
>
>the partial css is:
>
>.meetings {width: 50%;
>          border: 1px solid #143350;
>          padding: 3px;
>          margin-left: auto;
>          margin-right: auto;
>          margin-bottom: 1.5em;}
>          
>.meetings caption {padding: 4px 10px;
>                  text-align: center;
>                  font: bold .85em Arial, Helvetica, sans-serif;}
>                
>td {font-size: .85em;}
>          
>tr.odd {background: #BBD5FF;} 
>
>--------------------------
>and the html is as follows: [...]
>
Hi Maya,
Add: .meetings caption {margin: 0 auto; } and ...  testpage 
<http://home.tiscali.nl/developerscorner/css-discuss/test-caption.htm> :-)
In FF1.07 it's alright now, like IE6 and Opera8.01 before.

But why? The css2.1 spec's say:
"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."
http://www.w3.org/TR/CSS21/tables.html#q5

So I guess it is a Firefox bug, though my simple mind didn't find it in 
a Bugzilla search for "table caption":
https://bugzilla.mozilla.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&content=table+caption
 
<https://bugzilla.mozilla.org/buglist.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&content=table+caption>
(maybe this link will be broken)

Greetings,
francky
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to