Link to home
Create AccountLog in
Avatar of Ed_CLP
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:pageBlockSectionItem>


I also tried adding the escape="true" attribute, but wasn't able to add <B></B> tags.
Avatar of techhealth
techhealth
Flag of United States of America image

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.
Avatar of Ed_CLP
Ed_CLP

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
Avatar of techhealth
techhealth
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Ed_CLP

ASKER

Thank You!