You need to sign in to do that
Don't have an account?
Adhvika Bala
Increase font size and make text bold in VF page
Can someone please advise what tags we can use in VF page for increasing font size of a particular text and make it bold,italic.
Thank you
Thank you
Try below snippet.
<b><apex:outputText> XXXXX </apex:outputText> </b>
<apex:outputText value="${0, number, ###,###,###,##0.00}" style="font-size:19px;">
</apex:outputText>
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
For example
Contact First Name: Xyz
Contact Email : xyz@test.com
increasing the font size only for the questions part. The answers should be in normal text.
When i try this
<p><b><Style="font-size:30px:">Contact First Name: </style></b>apex:outputField value="{!Contact.First_Name__c}
But this doesn't seem to work.
Use style with different font-sizes and mention that as class in your input field as below:
<style>
.form_elem{
height: 15px;
font-size: 14px;
}
</style>
<p class="form_elem"><b>Contact First Name: </b>apex:outputField value="{!Contact.First_Name__c}
But it takes the same font size(Style) for both the Question and answer.
If i use </p> in between the question and answer the answer(output value) goes to the next line.
If i remove the </p> the both the label and output values is displayed in the same style.
I'm trying to make the Label to be large and bold and outputvalue to be normal.
Please suggest
To have both in the same line, use <span class="">{}</span>
<p class="form_elem">Contact First Name: </p><span class=""></span><apex:outputField value="{!contact.First_Name__c}" />