Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: stock on August 21, 2005, 03:19:08 pm

Title: picture caption box to right
Post by: stock on August 21, 2005, 03:19:08 pm
I 'm trying out some code for putting a picture box to the right of the picture and in theory it works except the box just gets wider with the text. How can I force the box to restrict its width and put the text on several lines instead? You can see an example of what is happening at - if you have to log in, I can send a screen dump instead.

Thanks for any help.

ps I tacked this onto the end of a solved query and though it might get lost there so hope you don't mind me sending this as a separate query.

code as is now:

// HTML template for intermediate image display new code from here putting title and caption to right
$template_display_picture = <<<EOT
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
<td align="center" valign="top">
<td align="left" valign="top" width="200">
<!-- BEGIN img_desc -->
<table width="100%" cellpadding="5" cellspacing="0" class="img_caption_table_righttext">
<!-- BEGIN title -->
<th align="left">
<!-- END title --><!-- BEGIN caption -->
<td align="left">
<!-- END caption -->
<!-- END img_desc --></td>
                        </table>                </td>