HTML Para对齐

时间:2014-09-19 20:49:32

标签: html alignment

我想在下面找到我的文字。我只需要使用HTML进行格式化(不是CSS,因为html代码在perl文件中,可以使用内联CSS)。我可以通过使用行作为表行/列并将表的宽度指定为y来实现使文本对齐的具体值?

当前格式

September 19, 2014
Status of my report 

This message is being sent regularly to development managers and interested parties to report the   status of having proper headings in the code of products that we are releasing.

For details refer to  Headers page.

所需格式:

       September 19, 2014
       Status of my report 

       This message is being sent regularly to development managers and 
       interested parties to report the status of having proper headings 
       in the code of products that we are releasing.

       For details refer to  Headers page.

1 个答案:

答案 0 :(得分:2)

根本没有任何CSS,只能使用<pre>标记来定位文字:

<pre>
           September 19, 2014
           Status of my report 

           This message is being sent regularly to development managers and 
           interested parties to report the status of having proper headings 
           in the code of products that we are releasing.

           For details refer to  Headers page.
</pre>

如果允许使用CSS,只需在段落上设置宽度和边距:

<p style="width:400px;margin:0 100px">...