forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: jakeslife on October 19, 2004, 03:43:45 am

Title: Centering a CPG tag on a non-CPG page
Post by: jakeslife on October 19, 2004, 03:43:45 am
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?
Title: Re: Centering a CPG tag on a non-CPG page
Post by: MeTaL_oRgY on October 19, 2004, 05:53:22 am
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:
Code: [Select]
.centerimg
{
margin-left: auto;
margin-right: auto;
}

HTML:
Code: [Select]
<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....
Title: Re: Centering a CPG tag on a non-CPG page
Post by: jakeslife on October 20, 2004, 04:09:54 am
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
Title: Re: Centering a CPG tag on a non-CPG page
Post by: Joachim Müller on October 20, 2004, 08:18:03 am
@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