coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: franco7777 on August 02, 2006, 10:09:27 PM

Title: Image Alignment
Post by: franco7777 on August 02, 2006, 10:09:27 PM
Dear All:
I was able to set up an image right down the copyright notice "powered by CPG", by just doing a copy and paste from templates.html.
However, I have not been able to center it.
Need help on that.
My question is:
<align="center"> where does it go.
This is the code, how do I align it to the center of Gallery?
<a href="index.php"><img src="themes/classic/images/site_logo.png" border="0" alt="" /></a><br />
Regards.
Franco190453 ::)
Title: Re: Image Alignment
Post by: Sami on August 02, 2006, 11:50:35 PM
something like this could do the job :

<center><a href="index.php"><img src="themes/classic/images/site_logo.png" border="0" alt="" /></a></center><br />


or you can put that line to a div tag and then set the align properties of that div to center
Title: Re: Image Alignment
Post by: franco7777 on August 03, 2006, 12:35:12 AM
Bmossavari:
Your <center> code worked perfect, Thanks.
Regards
Franco :D
Title: Re: Image Alignment
Post by: Joachim Müller on August 03, 2006, 06:43:31 AM
Quote from: franco7777 on August 02, 2006, 10:09:27 PM
<align="center">
There is no HTML tag named <align> - there is only an attribute for some HTML tags, e.g. <div align="left"> (HTML method) or <div style="text-align:left"> (inline CSS method). Third method is the <center> tag as suggested by bmossavari.