You need to sign in to do that
Don't have an account?
liron169
Problem with columns width in table
I'm using VF page as PDF, and showing some data in tables.
The problem is that if text field that inside the table have no spaces than the column exapnd more than the width.
I create example that show the problem.
Is there any easy way to solve it?
I found a solution in HTML forum.
need to use preprty word-wrap:break-word;
This way the line will break also if it doesn't have spaces
All Answers
Did you try giving width for "td" through style attribute?
I try it now, and the result is the same
You specified width in which parameters?
I mean px/em/....?
I'm writing:
<td style="width:100px">
This is HTML issue, not specifically for SF.
According to answer that I get, the only way to break the line without spaces is with java script.
I found a solution in HTML forum.
need to use preprty word-wrap:break-word;
This way the line will break also if it doesn't have spaces