On Friday, December 5, 2003, at 03:48 pm, Micki Kaufman wrote:
> Hi Carsten!
>
> Looks great! Rocking rocking rocking!!!
>
> Hey - if centeredness is a little tweaky, can we set the caption to be
> left-flush (align=left), or remove the align tag? I assume that's NOT
> in the stylesheet cause it's an attribute of the caption element.
>
> What do you think?
>
> Thanks,
> Micki
>
Hi Micki,
I understand the need for align=top for the older browsers, but I'm a
little reluctant to do (subjectively-) TOO much with depreciated HTML4
attributes in the release code of PhpWiki.
Of course you're absolutely welcome to modify your own wikis according
to your situation and needs. :)
It should be pretty easy to tweak, just change this line:
$table->pushContent(HTML::caption(array('align'=>'top'),
$caption));
As far as I understand, align=left would insert the caption in
front(left) of the WHOLE table, probably not what you want. Also, the
alignment of caption text WITHIN the cell is not clearly defined by the
HTML standard, and really is up to the individual browser how it is
displayed. You can try something like this:
$table->pushContent(HTML::caption(array('align' => 'top',
'style' =>
'text-align:left;'),
$caption));
Or, add this to the CSS stylesheet: (but it will affect ALL tables in
PhpWiki, even page lists returned from searches, etc.)
table caption { text-align: left; }
Carsten
|