Skip to main content
Question

Have a rich text button span the width of mobile Device

  • Jan 2, 2025 7:55 PM UTC
  • 1 reply
  • 46 views

Forum|alt.badge.img+20

On legacy forms, when using a mobile device there were some ways to make a rich text button span the width of the mobile device. You could use:

class='Vibrant' or in the styling you could use width: 100%.

Neither of these tricks work on the new forms (on mobile). Does anyone know of  way to make a rich text button span the width of a mobile device on new forms?

1 reply

Top Step
Forum|alt.badge.img+10
  • Observing
  • Nov 6, 2026 9:47 PM UTC

Yeah — those legacy tricks don’t carry over cleanly on new forms.

 

Two options that work better now:

 

Put the control in its own section/column so on the phone that column is already full width, then make the anchor a block element:

 

"<a href='" & $url & "' style='display:block; width:100%; text-align:center; padding:12px 16px; border-radius:6px; background:#0077c5; color:#fff; text-decoration:none; box-sizing:border-box;'>Button label</a>"

 

Or skip rich text for that one control and use a Formula - URL field displayed as a button. On new forms mobile those tend to fill the column without the old CSS fights.

 

I’d try the Formula - URL button first if you don’t need multiple links in one field. If you do need rich text, the display:block + width:100% version above plus a single-column section is the combination that usually looks right.