css on submit buttons in forms

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice

Post Reply
Holladerwaldelf
Cave Troll
Posts: 74
Joined: Fri Aug 07, 2015 1:16 pm

css on submit buttons in forms

Post by Holladerwaldelf »

Is there a way I can use CSS to change the appearance of a submit button in a form?
I tried things like:

Code: Select all

.input {background-color:black; color:white}

Code: Select all

.input[type='submit'] {background-color:black; color:white}

Code: Select all

.submit {background-color:black; color:white}

Code: Select all

.button {background-color:black; color:white}
Nothing seems to work.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: css on submit buttons in forms

Post by wolph42 »

nope, not possible. it *is* however possible to create you own buttons by a little cheat. I've done it in my framework and in the BoT. I also made a function available in the BoT that does the heavy lifting for you, so you can easily create a form with your own buttons.

Holladerwaldelf
Cave Troll
Posts: 74
Joined: Fri Aug 07, 2015 1:16 pm

Re: css on submit buttons in forms

Post by Holladerwaldelf »

Hmm, too bad...
Thanks for the hint. I will need to take a closer look at your BoT.

Holladerwaldelf
Cave Troll
Posts: 74
Joined: Fri Aug 07, 2015 1:16 pm

Re: css on submit buttons in forms

Post by Holladerwaldelf »

Is there an easy way to change the size of a submit button at least?

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: css on submit buttons in forms

Post by aliasmask »

Size of the button is dependent upon the content. There are various html tricks using a transparent image to force the size to be greater and uniform.

Post Reply

Return to “Macros”