Centering a CPG tag on a non-CPG page Centering a CPG tag on a non-CPG page
 

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

Main Menu

Centering a CPG tag on a non-CPG page

Started by jakeslife, October 19, 2004, 03:43:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jakeslife

I am trying ti display the latest upload on my main page, and for the most part I have it, but there's one thing I can't do: center it. It doesn;'t matter if I center the actual tag, because the print cpg_single tag displays this on the page:

<a href="http://www.jakeslife.net/scripts/coppermine/displayimage.php?&pos=-238" target="_top"><img src="http://www.jakeslife.net/scripts/coppermine/albums/wpw-76/thumb_3cea6f3db1c56814ed6895fe28eee9500_full.jpg" border="0" alt="" title="2 View&#10;" align="left" class="padright">

I just need to find where this is in the CPG files and modify it, but I have checked everywhere I can think of. Any suggestions?

MeTaL_oRgY

hmmm.... I don't know where that code is (probably on the shows.ini.php or something...)... but you can try adding that to a table or a div... like:
css:
.centerimg
{
margin-left: auto;
margin-right: auto;
}


HTML:

<table class="centerimg" cellpadding="0" cellspacing="0" border="0" style="border-collapse: collapse;"><tr><td> your image code here </td></tr></table>


hope that works O_o....

jakeslife

I've tried changing the properties of the table, as well as creating a css cattribute for the insert, but it keeps dragging the formatting along with it. I even downloaded the files from the server and ran a text search through them all and couldn't find that string of code. Oh well LOL

Joachim Müller

@jakeslife: post a link to the page in question.
@Metal_orgy: there's no file called "shows.ini.php" in coppermine (at least not the standalone version this board is about), and fiddling with the margin attribute certainly won't change alignment.

Joachim