Forum Discussion
GaryBoyd
8 years agoQrew Assistant Captain
Thank you. https://dabuttonfactory.com is an excellent resource as is magic buttons.
My text alignment on the buttons is not working and the text shows in top left. I want the text in middle of button - for both horizontal and vertical. I think I am missing the matching quotation mark before background. This one: style=\"background:#ffffff
Formula below:
// Begin button style
var text style = "style=\"background:#ffffff;border:1px solid #cccccc;border-radius: 5px;box-shadow:0 1px #666666;width:65px;height:15px;color:#000000;display:inline-block;font:normal 400 12px/15px\"Open Sans\",sans-serif;text-align:center;text-shadow:1px 1px #f3f3f3;";
// End button style
"<a " & $style &
" href='" & ...
Thanks for any help on where to place missing quotation or perhaps some other error is present.
My text alignment on the buttons is not working and the text shows in top left. I want the text in middle of button - for both horizontal and vertical. I think I am missing the matching quotation mark before background. This one: style=\"background:#ffffff
Formula below:
// Begin button style
var text style = "style=\"background:#ffffff;border:1px solid #cccccc;border-radius: 5px;box-shadow:0 1px #666666;width:65px;height:15px;color:#000000;display:inline-block;font:normal 400 12px/15px\"Open Sans\",sans-serif;text-align:center;text-shadow:1px 1px #f3f3f3;";
// End button style
"<a " & $style &
" href='" & ...
Thanks for any help on where to place missing quotation or perhaps some other error is present.