Link to home
Start Free TrialLog in
Avatar of macuser777
macuser777Flag for United Kingdom of Great Britain and Northern Ireland

asked on

change background color submit buttons.

Hi,

I want to change the background color of 2 types of submit button...code might be the same but don't want to ask twice.

          <input name="submit" type="submit"  align="absmiddle" style=";text-align:center"    onClick="this.form.keywords.value = this.form.search.value; this.form.action = 'http://www.domain.com/searchq.php';" value="health">

and

<button type="submit" name="submit" align="absmiddle">Search in Open Directory&nbsp;<b><?=$displayOnlyInCat?></b>&nbsp;Category</button>
Avatar of apresto
apresto
Flag of Italy image

to be honest as far as my knowledge does, i dont think you can.  But could you not make your own buttons and make them submit the form:

<a href="javascript:document.Form1.submit()"><img...></a>
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of weddell
weddell

Also , just for your info, you can assign a background image:

style="background-image: url(marble.gif) "

More information about background properties of elements can be found here:
http://www.w3schools.com/css/css_background.asp
Avatar of macuser777

ASKER

... I may have found a roundabout is messy way of dealing with browser problems using td's and br's....
!!!!

sorry that message was meant to come after 1 thought i'd posted abiut an hour ago saying thatnk's very much but that I was aslo having some allignment problems..... when I post in old look It often cuts off my message of jusy doesn't accept it all now as well it seems.


Sorry, CobolDinisaur...your solution was perfect...I was just having a couple of usual mac problems which there is no need to go into again now as I have found a way around.

Thanks

macuser
Glad we could help.  Thanks for the A. :^)

Cd&