Sent by Marcluzietti on 30 March 2006 21:09
"Pringle, Ron" [EMAIL-REMOVED]>
03/30/2006 03:26 PM
To: [EMAIL-REMOVED]>, [EMAIL-REMOVED]>
cc:
Subject: RE: [css-d] The captions! The captions! AUGH!!!!!
Marc wrote:
> The code below generates a header on the top-left of the
> table. The text
> in the <p> element, however, rolls up into a ball on the
> other end of the
> table.
> It should start right under the heading. I've tried giving a
> width:auto
> and the
> holly hack, but to no avail. I've tried floating it.
>
> HELP!
>
>
> I think this is all the relevant code.
> <div>
> <table>
> <caption>
> <h2>Test Results:</h2>
> <p>Calculated Closing Costs: <%jsp stuff%></p>
> </caption>
>
<SNIP>
Marc-
I could be wrong as I haven't taken the time to consult the proper
sources, but I don't believe the caption can contain headers and
paragraph tags. You should instead style the caption directly.
Ex.
<table>
<caption>Test Results: Calculated Closing Costs: xxxxx</caption>
And then write your rules as:
caption {
whateveryouwant: value;
}
Styling tables in general and captions in particular can be a bit odd if
you don't understand exactly how captions work as part of the structure
of the table.
Perhaps the following page will be of some help though.
http://www.aurora-il.org/table_test.htm
regards,
Ron
===========================================
The caption element may contain any body content, like a table cell can,
according to
"HTML & XHTML: The Definitive Guide," 4th Ed. O'Reilly.
--
Marc Luzietti
Flagship Project
Bayview Financial, L.P.
(305) 341-5624
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/