+ Start a Discussion
Lukasz PiziakLukasz Piziak 

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

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)}" />  
        <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>

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