+ Start a Discussion
aaaaaaaaaaaaaaaaaaaaaa 

how to wrap text in a column of pageblock table??

hii,

 

i have a pageblock table  which has columns

 

one of the column has data coming from field whose data type is text(256)

 

i have fixed the width of the column as

<apex:column width="30%" >

 

but when i write a long text value in the field.........the column width goes beyond 30%

 

so i want to wrap the text to second line when the width is 30% so that it cannot go beyond 30%

 

please provide me way of doing it !!!!!!

SFDummySFDummy

did you try like this

<apex:column style="width:200px"

 

sfdcFanBoysfdcFanBoy

There's an easier solution to this.  You need to use white-space: normal.
https://sfdcfanboy.com/2018/03/27/a-tip-a-day-38-pageblocktable-wrap-text/

Tina Y.T. ChangTina Y.T. Chang
@sfdcFanBoy - thanks. It helped a lot!