Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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>
0
macuser777
Asked:
macuser777
1 Solution
 
aprestoCommented:
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>
0
 
COBOLdinosaurCommented:
<input name="submit" type="submit"  align="absmiddle" style="text-align:center;background-color:blue;"    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" style="background-color:red;">Search in Open Directory&nbsp;<b><?=$displayOnlyInCat?></b>&nbsp;Category</button>

0
 
weddellCommented:
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

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
0
 
COBOLdinosaurCommented:
Glad we could help.  Thanks for the A. :^)

Cd&
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now