Ed_CLP
asked on
Trying to set apex:outputtext font properties
I am trying to add bold font formatting by using the style attribute. I am able to set the style to italic, or the color to red, but not the font-weight;
<apex:pageBlockSectionItem >
<apex:outputText style="font-weight:900;" value="This text should be in BOLD" />
<apex:inputField value="{!Opportunity.Test_ Field__c}" />
</apex:pageBlockSectionIte m>
I also tried adding the escape="true" attribute, but wasn't able to add <B></B> tags.
<apex:pageBlockSectionItem
<apex:outputText style="font-weight:900;" value="This text should be in BOLD" />
<apex:inputField value="{!Opportunity.Test_
</apex:pageBlockSectionIte
I also tried adding the escape="true" attribute, but wasn't able to add <B></B> tags.
That should work. In fact I just verified with a test page and it worked fine for me. Can you post the entire page code? Some other parts may have screwed up your style.
ASKER
I have attached a file with the relevant code. The entire page is over 600 lines, so I only included the section that I'm working on. apex-sample.txt
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thank You!