centering thumbnails centering thumbnails
 

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

centering thumbnails

Started by cadan, September 04, 2008, 11:30:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cadan

Greetings,

I am using cpmfetch to simply display the latest 4 uploads to my coppermine gallery on the main page of my site.

The problem is that I have got the text under each of the thumbnails to center but the thumbnails themselves seem to be left-justified within their cells
and not centered above the text underneath them. I am sure there is a way to make the thumbs center themselves within the cells but I am a total noob when it comes to coding. I was able to center the subtitle text by copying a line from someone else's code on the forums here.

Here is my $options line...can anyone tell me what I need to add to it in order to cause the thumbs to center over their subtitles? Could you provide an example of what the entire line should look like?

$options = array("imageheight"=>"75","subtitle" => "<center><FONT color=#f8d23a size=2> {{pHits}} Views <center></STRONG> <br> {{pOwner_name}}</center></font>");

Great Mod by the way Vuud, once I learn something about php and CSS I'll be going crazy with this one!