You need to sign in to do that
Don't have an account?
LitlleNinja
VisualForce font size issue
Dear community,
I have created a few visualforce page who can be rendered as .pdf.
It's working well so far.
But i want and i really need to change the font size for one column.
I tried with the <font> attribute but it doesn't work.
here is an extract :
<apex:repeat value="{!Factures__c.Lignes_factures__r}" var="line">
<tr >
<td CLASS="MYTABLE" width="6%">{!rowNo}</td>
<td width="60%" font-size="4px">
<apex:OutputField value="{!line.Produit_ligne_facture__r.Name}"/><br/>
<apex:OutputField value="{!line.Produit_ligne_facture__r.Description}" />
</td>
<td width="12%" align="right" ><apex:OutputField value="{!line.Tarif_mensuel_produit__c}"/></td>
<td width="12%" align="right" ><b><apex:OutputField value="{!line.Nbre_de_mois_factures__c}"/></b></td>
<td width="10%" align="right" ><apex:OutputField value="{!line.Montant_ligne_produit__c}"/></td>
</tr>
<apex:repeat>
I want to reduce the size of those datas :
<td width="60%" font-size="4px">
<apex:OutputField value="{!line.Produit_ligne_facture__r.Name}"/><br/>
<apex:OutputField value="{!line.Produit_ligne_facture__r.Description}" />
</td>
Thanks for your help i tried all the different thing that i found on the web but nothing work:/
Greetings,
I have created a few visualforce page who can be rendered as .pdf.
It's working well so far.
But i want and i really need to change the font size for one column.
I tried with the <font> attribute but it doesn't work.
here is an extract :
<apex:repeat value="{!Factures__c.Lignes_factures__r}" var="line">
<tr >
<td CLASS="MYTABLE" width="6%">{!rowNo}</td>
<td width="60%" font-size="4px">
<apex:OutputField value="{!line.Produit_ligne_facture__r.Name}"/><br/>
<apex:OutputField value="{!line.Produit_ligne_facture__r.Description}" />
</td>
<td width="12%" align="right" ><apex:OutputField value="{!line.Tarif_mensuel_produit__c}"/></td>
<td width="12%" align="right" ><b><apex:OutputField value="{!line.Nbre_de_mois_factures__c}"/></b></td>
<td width="10%" align="right" ><apex:OutputField value="{!line.Montant_ligne_produit__c}"/></td>
</tr>
<apex:repeat>
I want to reduce the size of those datas :
<td width="60%" font-size="4px">
<apex:OutputField value="{!line.Produit_ligne_facture__r.Name}"/><br/>
<apex:OutputField value="{!line.Produit_ligne_facture__r.Description}" />
</td>
Thanks for your help i tried all the different thing that i found on the web but nothing work:/
Greetings,
<td width="12%" align="right" ><apex:OutputField value="{!line.Tarif_mensuel_produit__c}" style="font-size:20px"/></td>
Hi,
I tried style="font-size:20px" or style="font-size:2" but it doesn't work ='(.
It seems <apex:outputField> is not able to parse style tag. Wrap <apex:outputField> in <apex:Label> tag and it will work.
Eg : <apex:outputLabel style="font-size:50px;color:red"><apex:outputField label="AccNAme" value="{!Account.name}" /></apex:outputLabel>
I hope this will fit in your requirement.
Hi,
It's working for the color attribute but the size doesn't change ='(