1
<td class="slds-form-element slds-size--1-of-12">
 <apex:outputField label="Reason" value="{!rl.Reason__c}" styleClass="slds-output"/>
</td>

I have a text area field - Reason__c. it's 255 chars and doesn't wrap. I've tried all of the slds wrap options with no luck.

3

Try this

<td class="slds-form-element slds-size--1-of-12 td-fixed-width" >
    <div class="slds-cell-wrap">
        <apex:outputField label="Reason" value="{!rl.Reason__c}" styleClass="slds-output" />
    </div>
</td>

CSS:

.td-fixed-width {
    width: 10rem;
}

You need put wrapped content in defined/fixed width to work

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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