Skip to main content
Question

Formatting of a Formula Text Field

  • January 31, 2018
  • 0 replies
  • 209 views

I am using simple formatting in a text field using following syntax: 

"<div style=\"font-weight: bold; background-color:Green; color:yellow; font-size: 190%; text-align: center; \">" & [Store Name]&" - "&[FY]&" ("&[Dev Code.]&")" & "</div>"

No matter what I do by re sizing it, the label wraps.  Pl see the attached screenshot. 

What could I do to ensure that field shows entire text in one line.  This is the only field in the section. Wonder what could I do to fix it? 
 
This topic has been closed for replies.

  • Registered
  • January 31, 2018
Try adding a {white-space: nowrap} style:

"<div style='font-weight: bold; background-color:Green; color:yellow; font-size: 190%; text-align: center; white-space: nowrap;'>" & 
[Store Name] &
" - " &
[FY] &
" (" & 
[Dev Code.] &
")" &
"</div>"

  • Author
  • Registered
  • January 31, 2018
Fantastic.  Works great. Many thanks. 

Can I piggyback on to this question? I've created a rich text formula to show an image and a text value next to each other. I don't want them to wrap. It seems so simple. This is what I am using...

"<div style='white-space: nowrap;'>" & [Performance Icon]&[Performance Text] &"</div>"

It still wraps.

Any ideas?

Thanks!