Silly Admin Trick: Page Block Text Wrapping

PageBlock, PageBlockSection, and PageBlockTable are all the devil I know this. But I support a lot of legacy Visualforce pages and before we make the jump to the Lightning UI I am updating a lot of these pagesĀ and find that the text wraps in the ‘PageBlock’ Title attribute for no reason at all. So this is a quick tip that fixes:

<style type=”text/css”>

    .pbTitle {
        white-space: nowrap
    }
</style>


Leave a Reply

Your email address will not be published. Required fields are marked *