Skip to main content
Participant
Jul 8, 2009 4:30 PM UTC
Answered

Where did margin go?

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 is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
Jul 8, 2009 5:11 PM UTC

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
Jul 10, 2009 6:45 PM UTC

Thank you, Richard.

Sumiko

Translate
rdermerCorrect answer
Inspiring
Jul 8, 2009 5:11 PM UTC

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

Translate