Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I have a long title in my apex:pageBlock

<apex:pageBlock title="I have a very very very very very long title here and it wraps">

and it wraps to the next line. I try adjusting width

<apex:pageBlock title="I have a very very very very very long title here and it wraps" style="width:600px">

But it still wraps.

Any ideas?

share|improve this question
add comment

2 Answers

You try overriding the header facet. Something along the lines of:

<apex:pageBlock>
    <apex:facet name="header">I have a very very very very very long title here and it wraps</apex:facet>
</apex:pageBlock>

You should be able to wrap your statement in a div or something and then properly style it.

share|improve this answer
add comment

Just add this to your VF page:

<style type="text/css">
    .pbTitle {
        white-space: nowrap;
    }
</style>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.