Forum Discussion

RaymondSakar's avatar
RaymondSakar
Qrew Cadet
3 years ago

Vertically Align a Rich Text button

I've got a nice Rich Text button and am trying to vertically align it. This isn't working:

"<a style=\"text-decoration:none; background: #4589f7; border-radius: 10px; color:#ffffff; display: inline-block; padding: 8x 20 px; width:100px; height: 18px; text-align: center; vertical-align: middle; text-shadow:none; \"

Anyone know how to vertically align in a rich text formula button?


------------------------------
Raymond Sakar
------------------------------
  • I can't really say how to fix yours, but this one works

    var text URL = [Log In URL];
    var text ButtonWords = "Log In";


    // Begin button style
    var text bgcolor = "#34A853"; // green
    var text txtcolor = "white";
    var text style = "style=\"text-decoration: none; text-align: center; background:" & $bgcolor & "; border-radius: 5px; padding: 5px 7px; color: " & $txtcolor & "; display: inline-block; font-size: 150%; font: normal 700 24px/1 \"Calibri\", sans-serif; text-shadow: none;";
    // End button style

    If([# of Open Time Punch for Today (work)]=0 and [In / Out Status] <> "Lunch",

    "<a " & $style & " href=" & $URL & ">" & $ButtonWords & "</a>")

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------