Ericsson R380 manual Paragraphs, Paragraph example

Page 11

Paragraphs

Text on a WML card comprises one or more paragraphs.

A paragraph always starts on a new line and is preceded by an extra line space of 3 pixels.

Text within a paragraph is by default displayed left aligned. However, it can optionally be displayed right aligned or centered.

WML

Paragraphs are defined by using the p element.

The p element also establishes the alignment attribute for a paragraph.

Attribute Description

align The align attribute can take the following values: left, right and center. Left alignment is the default alignment mode.

A paragraph example

The example below shows how the p element and the align attribute affect the card content appearance.

<wml>

<card id="init" title="P tag"> <p>

<b>LEFT</b><br/>

This text is left aligned. The text will continue until the end of the line and then wrap to a new line.<br/>

</p>

<p align="center"> <b>CENTER</b><br/>

This text is centered. The text will continue until the end of the line and then wrap to a new line.<br/>

</p>

<p>

</p>

<p align="right"> <b>RIGHT</b><br/>

This text is right aligned. The text will continue until the end of the line and then wrap to a new line.

</p>

</card>

</wml>

9

Image 11 Contents
Mobile Phone R380 Design Guidelines For WAP Services Page Contents Related Publications Overview of ContentsPreface Who Should Read this Guide?Definitions TerminologyAbbreviations General Usability Aspects Card Title Bar User Interface IssuesBrowser Display Browser AreaToolbar On-screen KeyboardNavigating Font Size and Font Style Using TextDesign Components Line break example Line Spacing and Line BreaksText formatting example Paragraph example ParagraphsFieldset example Indented ParagraphsMultiple Using Select ListsCard Title Bar Single Choice ListsAn example of a single choice list Multiple Choice ListsOption element An example of a multiple choice list Using ButtonsOptgroup element Do example Using Input FieldsLabel TypeAn input example Using ImagesValue Hspace AltSrc VspaceHyperlink example Using HyperlinksAn image example An image hyperlink example Using Images as HyperlinksUsing Tables Polar Weather table example Align ColumnsPizza Penguin table example Pizza Penguin Example
Related manuals
Manual 7 pages 50.51 Kb Manual 25 pages 11.38 Kb