[SOLVED] Change style to button display mode link

In a form I created an ajax button display mode link.
This element inherits the css form page style.
I want to change the style for this button only.
On the page I have:
a id = “sc_Stampacond_top” style = “vertical-align: middle; display: inline-block;” onclick = “scBtnFn_Stampacond (); return false;”> General Conditions </a
I would like it to be:
a id = “sc_Stampacond_top” onclick = “scBtnFn_Stampacond (); return false;” style = “vertical-align: middle; display: inline-block; padding-right: 6px; font-weight: bold;”> General Conditions </a
How can I change it onload event?
TKS

You can override the style of the button in onScriptinit

?>
<style>
#id_of_button{
style_you_want:value !important;
}
</style>
<?php

Don’t forget to put the !important parameter for each attribute

2 Likes

Perfect
Thank you very much for helping

can you please share the code you use. i’m using bootstrap to do the same but maybe this is a better solution.

Yes this is the code:
immagine
Sorry but I can’t write it without showing it completely

1 Like

Please note that sometime it will not work and you will have to override the priority of the style by using the !important parameter

Ex.
font-weight: bold !important;
padding-right: 6px !important;

1 Like

Ok i remember that
tks

On bootstrapo i have the problem that when i use refined search in get an error. do you have the same with code?

i don’t know
i try it in a single form, without any search