Previous Message
Next Message

Styling table captions

Sent by Zoe M. Gillenwater on 14 January 2005 16:04


Owen Leonard wrote:

>Whoops... Had the test case all made up and forgot the link:
>
>http://66.213.78.40/temp/table.html
>  
>

(Recap: In FF, the caption is rendered less wide than the cells below.  
Opera and IE have it lined up properly.)

Owen,

Don't know if you are even still working on this issue, but I finally 
got a chance to look at it...

What's happening is that FF is adding the borders for the caption 
*within* the caption's box.  This is essentially IE's old subtractive 
box model!  Because all other elements, including the th and td 
elements, add the borders outside the boxes, they appear to hang out 
further to either side of the caption.

This appears just plain wrong to me.  Can anyone confirm this?  Should 
it be filed with bugzilla?

You could try chaging the box model the caption element uses, but I 
couldn't get this to work, using the Edit CSS extension anyway:
http://www.quirksmode.org/css/box.html

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: