picture caption box to right picture caption box to right
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

picture caption box to right

Started by stock, August 21, 2005, 03:19:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stock

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 http://www.stockshoots.co.uk/displayimage.php?&pos=-223 - if you have to log in, I can send a screen dump instead.

Thanks for any help.
stock

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
        <tr>
                <td align="center" class="tableb" height="{CELL_HEIGHT}" style="white-space: nowrap; padding: 0px;">
                        <table cellspacing="2" cellpadding="0" class="imageborder">
                                <tr>
<td align="center" valign="top">
                                                {IMAGE}
                                                {ADMIN_MENU}
                                        </td>
<td align="left" valign="top" width="200">
<p></p>
<!-- BEGIN img_desc -->
<table width="100%" cellpadding="5" cellspacing="0" class="img_caption_table_righttext">
<!-- BEGIN title -->
<tr>
<th align="left">
                                                {TITLE}
                                        </th>
</tr>
<!-- END title --><!-- BEGIN caption -->
<tr>
<td align="left">
                                                {CAPTION}
                                        </td>
</tr>
<!-- END caption -->
</table>
<!-- END img_desc --></td>
</tr>
                        </table>                </td>
        </tr>