Skip to main content
Participant
July 8, 2009
Answered

Where did margin go?

  • July 8, 2009
  • 2 replies
  • 746 views

Hi-

I'm updating a piece of content that used the released beta of the TLF, to r460.  I had been setting p.marginBottom, marginTop, marginLeft, and marginRight on ParagraphElement's. But the margin properties are gone, and padding doesn't provide the same effect as margin. Any ideas? Thanks!

-Matt

This topic has been closed for replies.
Correct answer rdermer

Use padding on TextFlow and ContainerController's for "margins" around containers.

For "margins" around paragraphs use the paragraphSpaceBefore, paragraphSpaceAfter, paragraphStartIndent and paragraphEndIndent formats.

This will give you all the functionality that margins previously supplied.  Note that the paragraphStart/EndIndent switch orientation with the direction property.  Specifically in RTL text paragraphStartIndent applies to the right side.  In LTR text it applies to the left side.

Hope that helps,

Richard

2 replies

Participating Frequently
July 10, 2009

Thank you, Richard.

Sumiko

rdermerCorrect answer
Adobe Employee
July 8, 2009

Use padding on TextFlow and ContainerController's for "margins" around containers.

For "margins" around paragraphs use the paragraphSpaceBefore, paragraphSpaceAfter, paragraphStartIndent and paragraphEndIndent formats.

This will give you all the functionality that margins previously supplied.  Note that the paragraphStart/EndIndent switch orientation with the direction property.  Specifically in RTL text paragraphStartIndent applies to the right side.  In LTR text it applies to the left side.

Hope that helps,

Richard