Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Image abobe the text

01 Mar 2011, 11:24

I would like to create a simple textpage with a picture above the text so I've used the example found in your docs. Problem is that the image height is 368 pixels and if I set the leading=368 each row of my text is spaced 368 pixels and the result is awful.

This is the code
Code
<textformat leading="368"><img src="content/about/mypicture.jpg" width="490" height="368" /><br/>text here</textformat>
but the results are as described. Any suggestion on how to do that?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Image abobe the text

01 Mar 2011, 12:28

You would need to enclose the textformat tag before you add the line-break and text. Something like this:
Code
<textformat leading="368"><img src="content/about/mypicture.jpg" width="490" height="368" /></textformat><br/>text here
I am not sure how the new text editor deals with textformat, but the above should work for the output ...
 
User avatar
andreamarucci
Experienced
Topic Author
Posts: 312
Joined: 01 Mar 2011, 11:13

Re: Image abobe the text

02 Mar 2011, 02:58

Perfect! That way it works!!!