You need to sign in to do that
Don't have an account?
Katherine Anderson
Help with outputField label text wrap
Hi all,
I'm trying to get the spacing/label text wrap on this page sorted so that the labels associated with outputField values don't wrap. The idea is to have outputField in the left column and the associated inputField value directly across in the right column. Right now, I've got the right column displaying correctly but haven't been able to do the same for the left. VF page & image below. Any advice would be much appreciated!
<br>label{<br> color: #30a27c;<br> font-size: 12px;<br> font-style: normal;<br> font-weight: normal;<br> font-family: PT Sans, sans-serif;<br> text-align: justify;<br> white-space: nowrap;<br> }<br>
Thanks,
-Katherine
I'm trying to get the spacing/label text wrap on this page sorted so that the labels associated with outputField values don't wrap. The idea is to have outputField in the left column and the associated inputField value directly across in the right column. Right now, I've got the right column displaying correctly but haven't been able to do the same for the left. VF page & image below. Any advice would be much appreciated!
<br>label{<br> color: #30a27c;<br> font-size: 12px;<br> font-style: normal;<br> font-weight: normal;<br> font-family: PT Sans, sans-serif;<br> text-align: justify;<br> white-space: nowrap;<br> }<br>
Thanks,
-Katherine
All Answers
Can you please post your code for the VF page. It would be easier for me to explain on top of it.
--Akram
Not sure why it's truncating the sample when I use the code snippet button.
Page 1/2
Thanks, I can see it now :)
Use the following CSS. I haven't tested it. But it should work.
--Akram
th, label{} doesn't work, but both td, label{} and tr, label[] do ... however using either of them means that the page then gets really wide. Do you know how I'd go about getting rid of all that blank space between the 2 columns? (It seems to have added a similar amount of space on the far right side of the right-hand column. Almost like there are now 4 columns, with data displaying in columns 1 & 3.)
-Katherine
https://developer.salesforce.com/forums/#!/feedtype=SINGLE_QUESTION_DETAIL&dc=General_Development&criteria=OPENQUESTIONS&id=906F0000000BNcpIAG