Formatting of a Formula Text Field

  • 0
  • 1
  • Question
  • Updated 8 months ago
  • Answered
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? 
 
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,132 Points 3k badge 2x thumb

Posted 9 months ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,372 Points 20k badge 2x thumb
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>"
Photo of Arshad Khwaja

Arshad Khwaja

  • 3,132 Points 3k badge 2x thumb
Fantastic.  Works great. Many thanks. 
Photo of Heather Bryant

Heather Bryant

  • 952 Points 500 badge 2x thumb
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!