Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grey Standard Button - How To Change It.

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
Hi!

I have a standard push button on my form -

<input type="submit" name="action" value="Continue" style="font-family: Verdana; font-size: 10pt; text-align: center">

I would to only show the word "Continue" and nothing else. How do I get rid of the grey button picture? I just want the user to click on the word "Continue" instead of the grey button.
 
then make it a hyperlink instead of a button...

<a href="whatever.asp">Continue</a>

-DNG
 
Or if you need to submit the form instead of just move to another page you could use client-side javascript to subit it...
 
You can also use CSS to style an input button.

In the html head tags:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" />
<title>Title</title>
<style type="text/css">
<!--
body {
	background-color: #fff;
}
input.btn{
	color:#000;
	font-family:'trebuchet ms',helvetica,sans-serif;
	font-size:small;
	font-weight:bold;
	background-color:#fff;
	border:0px solid;
	text-decoration:underline;
}
-->
</style></head>
<body>
<input type="button" value="Submit" class="btn" />
</body>
</html>

text-decoration is ignored in FF for input buttons as I do not see the underline in FF 1.5 but in IE 6 it's fine.

-a6m1n0

Curiosity only kills cats.
 
<a href="javascript:frmName.submit();">Continue</a>

That would be a hyperlink on your page which submits your form. Remeber to change the frmName for your form name making sure it is case sensitive
 
Have you tried this? Gives you a button the size of a page :)
Code:
<input type="submit" value="Continue" name="B3" style="width: 100%; height:100%">
</form>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top