function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lukasz PiziakLukasz Piziak 

How to align to the left individual lines on the PDF VisualForce one under the other?

Hi, 
The following code is aligning all my text fields on the PDF as a one string, 
<apex:page standardController="Short_Length_Piece__c" extensions="ShortLengthPieceController" renderAs="PDF" showHeader="false" sidebar="false">
<apex:styleSheet value="{!URLFOR($Resource.Label29)}" />  
<body>     
        <left style="font-size:20px; font-weight:600; font-family:sans-serif;"> {!shortlength.Name} </left>
        <left style="font-size:20px; font-weight:600; font-family:sans-serif;"> {!shortlength.Piece_Length__c} MT </left>
       <left style="font-style:italic; font-size:15px; font-family:sans-serif;"> {!shortlength.Item_Number__c} </left>
       <left style="font-style:italic; font-size:15px; font-family:sans-serif;"> {!shortlength.Item_Description__c} </left>
       
       
</body>
</apex:page>

My question is if its possible to align each line individually one under the other instead of having one long text stream?
I have used the following CSS fomrating:
@page { size: 3.93in 1.14in; margin-top: 0.5px; margin-bottom: 1px; margin-right: 5px; margin-left: 5px; }

Can you advise?
Best regards
Lukasz