Ericsson R380 Car Speaker User Manual


 
9
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>