Skip to main content
April 6, 2010
Answered

TLF possible VerticalAlign question

  • April 6, 2010
  • 1 reply
  • 625 views

Hi folks,

There is a simple question here...

I have a TLF object in my project, That I want set vertical align for specific part of that!! let me describe it more:

Look at this code:


<s:RichEditableText editable="false">
     <s:textFlow>
          <s:TextFlow>
               <s:img source="adobe.png" />
               <s:span>Adobe!</s:span>
          </s:TextFlow>
     </s:textFlow>
</s:RichEditableText>


Result is something like this:



But I don't want it in this way. I want something like this:

How can I make this?!

This topic has been closed for replies.
Correct answer rdermer

Try using baselineShift to move the image around. 

This sort of worked for me.

<img baselineShift="-90" lineHeight="16.8" height="100" width="100" source="surprised.png"/>

The surrounding text was 14 point with leading of 120%.

TLF won't wrap around the image on the following lines.

Hope that helps,

RIchard

1 reply

rdermerCorrect answer
Adobe Employee
April 7, 2010

Try using baselineShift to move the image around. 

This sort of worked for me.

<img baselineShift="-90" lineHeight="16.8" height="100" width="100" source="surprised.png"/>

The surrounding text was 14 point with leading of 120%.

TLF won't wrap around the image on the following lines.

Hope that helps,

RIchard

April 7, 2010

awesome RIchard,

TanQ