/    Sign up×
Community /Pin to ProfileBookmark

Can a form submit button have its color set?

Can a form submit button have its color changed or does it have to be the default gray?

to post a comment
HTML

8 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMay 22.2005 — [code=html]
<input type=submit value="Submit" sytle="background-color: #336699; color: #ffffff;">
[/code]
Copy linkTweet thisAlerts:
@Mike_BurdickauthorMay 22.2005 — NogDog,

Thanks!
Copy linkTweet thisAlerts:
@jmaresca2005May 23.2005 — u caN Also do this in css
Copy linkTweet thisAlerts:
@JPnycMay 23.2005 — He did. He used inline CSS.
Copy linkTweet thisAlerts:
@BeachSideMay 23.2005 — No offence NogDog but that will never work... style is spelled wrong :p

It needs to be...
[code=html]
<input type=submit value="Submit" style="background-color: #336699; color: #ffffff;">
[/code]


I addition to that you can set the borders, font (face/size/color) and with a bit of JavaScript you can even make it like an <a> link and give it a hover ?
Copy linkTweet thisAlerts:
@PeOfEoMay 23.2005 — No offence NogDog but that will never work... style is and with a bit of JavaScript you can even make it like an <a> link and give it a hover ?[/QUOTE]
[COLOR=deeppink]That bit sounds risky.[/COLOR]
Copy linkTweet thisAlerts:
@BeachSideMay 23.2005 — [COLOR=deeppink]That bit sounds risky.[/COLOR][/QUOTE]

Only if you depend on it. If it doesn't matter if it works or not then it is perfectly acceptible in my book. After all that is the point of JavaScript isn't it. To add nifty interactive fun to the page without relying upon it for functionality?
Copy linkTweet thisAlerts:
@PeOfEoMay 23.2005 — [COLOR=deeppink]Yes... but most of the time my command buttons are posting important data to the server so I wouldn't let js anywhere near them![/COLOR]
×

Success!

Help @Mike_Burdick spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...