2014-09-19 128 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