Scaling Button Text

  • 17 September 2020
  • 1 reply
  • 2 views

I’m using DTR for a landing page and if a keyword is really long it makes our button look funky:

button-bad

Here’s what ideal text on the button looks like:

button-good

Is there a way to scale the text and center it so it looks good?


1 reply

Userlevel 7
Badge +3

Hi @ryanpopoff,

Use your longest possible keyword to set the width of the button.
It would have a lot of white space for shorter keywords but that’s the easy and quick fix you can apply in 60sec.

The other option is to write a somewhat complicated JS/CSS script that would look up the keyword on page load and adjust the button size accordingly.

Best,
Hristian

Reply