MyBB Community Forums
change the color of all submit buttons - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: change the color of all submit buttons (/thread-173267.html)



change the color of all submit buttons - Zlatan - 2015-07-17

It should be easy but I can't do that. I'd like to change the color of all submit buttons with class="button", how can achieve that in myBB 1.8?

<input type="submit" class="button" name="submit" value="Search">

In the CSS I tried in vain with :
.button {background-color:red;}


RE: change the color of all submit buttons - Ad Bakker - 2015-07-17

Try:

input.button {background-color: red;}


RE: change the color of all submit buttons - Zlatan - 2015-07-17

(2015-07-17, 07:53 PM)Ad Bakker Wrote: Try:

input.button {background-color: red;}

It doesn't work Sad


RE: change the color of all submit buttons - .m. - 2015-07-18

you can try it by adding !important - eg. .button {background: red!important;}


RE: change the color of all submit buttons - Zlatan - 2015-07-18

(2015-07-18, 03:36 AM).m. Wrote: you can try it by adding !important - eg. .button {background: red!important;}

Thank you, now it's working with:  input.button{background:red!important}