Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Image Alignment  (Read 2676 times)

0 Members and 1 Guest are viewing this topic.

franco7777

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Image Alignment
« 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 ::)
« Last Edit: August 03, 2006, 06:43:44 am by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Image Alignment
« Reply #1 on: August 02, 2006, 11:50:35 pm »

something like this could do the job :
Code: [Select]
<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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

franco7777

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Image Alignment
« Reply #2 on: August 03, 2006, 12:35:12 am »

Bmossavari:
Your <center> code worked perfect, Thanks.
Regards
Franco :D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Image Alignment
« Reply #3 on: August 03, 2006, 06:43:31 am »

<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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.