Flash-text-right-margin

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style is exclusive to the 'text' tag and sets the right margin of an entire text block.


Value

The flash-text-right-margin style accepts pixel values.

flash-text-right-margin: 10px;


Remarks

Setting a text field's right margin this way is a Flash feature. See the Flash reference for TextFormat.rightMargin for more details. Also see the "textformat" tag documented with TexField.htmlText for a way to apply a right margin to only a selection of text.


Example

The example shows how the right margin may be set with the flash-text-right-margin style as well as with the Flash textformat tag.

<style><![CDATA[
    text
    {
		border-width: 1px;
		flash-text-right-margin: 10px;
		text-align: right;
		condense-white: true;
		font-family: Swift LT Std;
		font-size: 14px;
		width: 200px;
		margin: auto;
    }
]]></style> 
<include rel="assets" blocking="true" src="assets.swf" fontClasses="SwiftLTStd, SwiftLTStdBold, SwiftLTStdItalic" />
<text><![CDATA[
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore
veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam
voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia
consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque
porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci
velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore
magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum
exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi
consequatur?
<textformat rightmargin="20">
	Quis autem vel eum iure reprehenderit qui in ea voluptate velit
	esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
	voluptas nulla pariatur?
</textformat>
]]></text>

Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player