Page 1 of 1

Image abobe the text

Posted: 01 Mar 2011, 11:24
by andreamarucci
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?

Re: Image abobe the text

Posted: 01 Mar 2011, 12:28
by mjau-mjau
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 ...

Re: Image abobe the text

Posted: 02 Mar 2011, 02:58
by andreamarucci
Perfect! That way it works!!!