Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: picture caption box to right  (Read 3697 times)

0 Members and 1 Guest are viewing this topic.

stock

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
picture caption box to right
« 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 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>
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.