2014-09-19 87 views
-1

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

当前格式

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. 
+2

为什么没有CSS?你还希望如何设计它? – j08691 2014-09-19 20:51:30

+0

你问的最适合CSS(演示文稿),你不能使用任何?甚至没有内联CSS? – Crackertastic 2014-09-19 20:52:15

+0

@Crackertastic:我很喜欢内联CSS。更新。我在perl文件中使用这个html,因此受到了限制。我可以通过使用行作为表格行/列并指定表格的宽度来做到这一点吗? – Jill448 2014-09-19 21:00:53

回答

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允许,只需设置aw该段落的宽度和边距:

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

只将margin-left设置为相同的值:'

' – VMai2014-09-19 21:18:48