Forum Discussion

ArshadKhwaja's avatar
ArshadKhwaja
Qrew Commander
8 years ago

Formatting of a Formula Text Field

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? 
 
  • 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>"
  • HeatherBryant2's avatar
    HeatherBryant2
    Qrew Assistant Captain
    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!