PDA

View Full Version : what is <p> ?


metasarah
03-10-2003, 02:35 PM
I expected <p> to extend text or at least view. If so, <p align="right"> would have worked, but it doesn't (I get a compile error).

What is <p> ? (and could I extend it to support the align attribute)

antun
03-10-2003, 02:42 PM
No <p> is does not extend <view>. <p> belongs to a set of HTML markup tags. <p align="right"> is not going to work. If you want to right align text right now, you could have a bunch of <text> views, each of which are right aligned.


<view name="myParagraph">
<simplelayout spacing="3" />
<text align="right">Hello this is right-</text>
<text align="right">aligned text.</text>
</view>


Take care,

Antun

mdavis
03-11-2003, 10:01 AM
um