Skip to main content
Inspiring
February 10, 2009
Answered

multi-column div question

  • February 10, 2009
  • 1 reply
  • 426 views
I would like to create a section in my single column container have multiple columns.
Since DivElement is a subclass of ContainerFormattedElement I figured this would be a good place to start.

I would like to make the div 2 columns, in the first column place an inlineGraphic, and in the second column place a few lines of text span/br/span/br/span.

The trickiness would seem to be...
How do I get the columns to be different for a div versus the overall TextFlow?
How do I indicate where the column should break (after the InlineGraphic)?

This entire thing would go away if we simply had float working with InlineGraphic, but that does not seem to be coming abytime soon, so this would be a workable solution for the time being.

The attached markup was generated by using actionscript code and exporting via TextFilter...
Any thoughts?

Is anybody out there?
Thanks,
Tim
This topic has been closed for replies.
Correct answer robin_briggs
DivElement doesn't support columns -- although I think it should someday, which is why the API is suggestive. I think it would be possible to emulate this, but it would require breaking the text into two TextFlows. Flow text through the first container, thentake the overflow text and copy it into a second flow that would flow into the second container.

1 reply

robin_briggsCorrect answer
Adobe Employee
February 15, 2009
DivElement doesn't support columns -- although I think it should someday, which is why the API is suggestive. I think it would be possible to emulate this, but it would require breaking the text into two TextFlows. Flow text through the first container, thentake the overflow text and copy it into a second flow that would flow into the second container.