Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
leoz
Topic Author
Posts: 8
Joined: 12 Sep 2008, 10:37

[RESOLVED] How to center image on textpage ?

12 Sep 2008, 11:30

Hi,

First I don't speak english very well, sorry ;)

I want to center a picture on the HTML Page, I'm using last version of V2 (03 september 2008).

I add my picture with a html code <img></img>
I suppose for center picture, use balise <center></center> but not working :/

Thx for you help. ;)

Leoz
Last edited by leoz on 14 Sep 2008, 17:45, edited 1 time in total.
 
Barbapapa
Posts: 4
Joined: 11 Sep 2008, 09:09

12 Sep 2008, 12:15

Hi leoz,

try it without the center tag

example: *img src="content/textpage/folder/picture.jpg" /*
 
User avatar
leoz
Topic Author
Posts: 8
Joined: 12 Sep 2008, 10:37

12 Sep 2008, 12:59

Hi Barbapapa,

Sorry but he not work,
I try with * and /* (* and /* it's comments on CSS no ?)
I try with img src="content/pictures1/4.jpg"
I try with *img src="content/pictures1/4.jpg"/*

Nobody working...:/

Thanks for your help Barbapapa ;)
 
Barbapapa
Posts: 4
Joined: 11 Sep 2008, 09:09

12 Sep 2008, 13:53

sorry,
forgot it.
You have to put
''<''before
and ''/>'' after img src=........ instead of *......*
 
User avatar
leoz
Topic Author
Posts: 8
Joined: 12 Sep 2008, 10:37

12 Sep 2008, 16:16

This picture is on the page but it's not centered :/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

12 Sep 2008, 23:06

Try this:
Code
<textformat align="center"><img src="content/pictures1/4.jpg" /></textformat>
... or ...
Code
<p align="center"><img src="content/pictures1/4.jpg" /></p>
 
User avatar
nz-photo
Experienced
Posts: 248
Joined: 06 Dec 2007, 17:26

13 Sep 2008, 10:39

Hi Karl, Both doesn't work for me.
Empty your mind, be formless, be shapeless, like water...
www.nz-photo.com
 
User avatar
leoz
Topic Author
Posts: 8
Joined: 12 Sep 2008, 10:37

14 Sep 2008, 08:28

Doesn't work for me to :/
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

14 Sep 2008, 14:52

I did some further research into this, and unfortunately, flash does not support center align for images. I did however come across a quirky workaround method which may work for some people:
Code
<img src="content/pictures1/4.jpg" hspace="100" />
By using the hspace attribute, you can define the horizontal margin of the image. This means you can "move" it towards the center - It may require some calculating and experimenting.
 
User avatar
leoz
Topic Author
Posts: 8
Joined: 12 Sep 2008, 10:37

14 Sep 2008, 17:44

Good, thx for the astuce ;)
 
User avatar
qxygenex
Experienced
Posts: 29
Joined: 16 Mar 2009, 10:18

11 May 2009, 22:05

try
align="center"
also
align="right", align="left" works as well..
Last edited by qxygenex on 10 Feb 2013, 15:17, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

12 May 2009, 00:28

Wow! advanced flash textformatting! :D How did you get those thumbnails aligned at the right?? Its almost as you have achieved that thanks to some non-consistency in flash textfields.