Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Ability Command Button styling or equivalent

Greetings & Salutations, I was wondering if there is a way to use CSS to style ability command buttons and if there is not, if there is an alternative to this, such as creating buttons via html (which does not seem to work).
1516738655
Jakob
Sheet Author
API Scripter
You can style the look of Ability command buttons via character sheet CSS if they're within a roll template. You can send links (ability command buttons are actually <a> elements, not <button>s) with inline styling if the message is sent by an API script. You can use a plugin like Stylish to style ability command buttons (but that works only locally on your computer, of course).
1516743004

Edited 1516743031
Thank you Jakob, how would I use the <a> element in this case? Could you examplify this?
1516744086
Jakob
Sheet Author
API Scripter
Like this <a style="border:2px solid black;background:transparent;color:black;" href="~Tom|TestAbility">Click me</a> Same for API command buttons. Essentially, put into the href whatever you would normally put into the round brackets for the button.
Well thank you. I wasn't expecting to use the href to call the command.