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
LitlleNinjaLitlleNinja 

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,
Dev.AshishDev.Ashish
Try something like.

<td width="12%" align="right" ><apex:OutputField value="{!line.Tarif_mensuel_produit__c}" style="font-size:20px"/></td>
LitlleNinjaLitlleNinja

Hi,

 

I tried style="font-size:20px" or style="font-size:2" but it doesn't work ='(.

Rishi kaliaRishi kalia
Hi,

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.
LitlleNinjaLitlleNinja

Hi,
 

It's working for the color attribute but the size doesn't change ='(

Dev.AshishDev.Ashish
use outputtext instead of outputfield and it will work.