Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: How to justify the text in display image  (Read 4351 times)

0 Members and 1 Guest are viewing this topic.

ac_djsusanne

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
How to justify the text in display image
« on: September 28, 2006, 12:38:57 pm »

Hello,

is it possible to justify the text within the display image? Hereīs the link www.alwayscountry.net/coppermine

Iīd like to

- center the image (like it is)
- center the name of the image (like it is)
- justify the text below
- center "Visit Website"

I tried to change the style.css but nothing worked. I also tried to justify the text with [justify]text[/justify]

Any ideas on this?

Thanks,
Susanne
« Last Edit: October 01, 2006, 01:01:04 pm by GauGau »
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How to justify the text in display image
« Reply #1 on: September 28, 2006, 01:56:02 pm »

You'll have to set up separate tables for the text and "Visit Website". It's easy though so copy this code from your theme>sample.php and paste into your theme.php and add the tables where you see fit. Apply your styling and away you go.
Code: [Select]
// HTML template for intermediate image display
$template_display_media = <<<EOT
        <tr>
                <td align="center" class="display_media" nowrap="nowrap">
                        <table cellspacing="2px" cellpadding="0px" class="imageborder">
                                <tr>
                                        <td align="center">
                                                {IMAGE}

                                        </td>
                                </tr>
                        </table>
                </td></tr>
                <tr><td>
                                                <table width="100%" cellspacing="2px" cellpadding="0px" class="tableb">
                                <tr>
                                        <td align="center">

                                                {ADMIN_MENU}
                                        </td>
                                </tr>
                        </table>





<!-- BEGIN img_desc -->
                        <table cellpadding="0px" cellspacing="0px" class="tableb" width="100%">
<!-- BEGIN title -->
                                <tr>
                                        <td class="tableb"><center><b>
                                                {TITLE}
                                        </b></center></td>
                                </tr>
<!-- END title -->
<!-- BEGIN caption -->
                                <tr>
                                        <td class="tableb"><center>
                                                {CAPTION}
                                        </center></td>
                                </tr>
<!-- END caption -->
                        </table>
<!-- END img_desc -->
                </td>
        </tr>

EOT;
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How to justify the text in display image
« Reply #2 on: September 28, 2006, 02:14:21 pm »

Oppsss.... just after I thought about this I checked and see that you have a different website for each artist and that it's part of the comment. Umm.... will have to think about this but maybe someone will come up with an answer before I get back.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

ac_djsusanne

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How to justify the text in display image
« Reply #3 on: September 28, 2006, 02:41:39 pm »

Hi,

thanks for your answer. Well I decided that I justify the entire comment since itīs easier. Itīs not really justified because of whatever LOL but that doesnīt really bother me.

So thank you - you really helped me because I didnīt know where to change it.  :)

Have a good one,
Susanne
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: How to justify the text in display image
« Reply #4 on: September 28, 2006, 03:01:50 pm »

Actually it looks pretty good.  :)
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

ac_djsusanne

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How to justify the text in display image
« Reply #5 on: September 28, 2006, 03:21:59 pm »

Yep Iīd say so too  ;D

So this problem is solved. Thanks again!!!
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.