We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Submit buttons that look like plain text

TomMonkey
TomMonkey asked
on
Medium Priority
342 Views
Last Modified: 2010-05-18
Hello,

I am looking to use asp to change the text on my website rather than using inline frames.  However Now the hyperlinks that I have on the top of the page will need to be replaced by buttons to spark the asp into doing something.  is there anyway of either makeing buttons out of text or buttons that look like text please?  Or can anyone think how I can still use the hyperlinks?  I am trying to keep it all on the same page.

Many thanks

Tom
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2006

Commented:
You can use the following style elements:
border:none;background:transparent;padding:0;display:inline;text-decoration:underline

Depending on your code you can use:
- style="border:none;background:transparent;padding:0;display:inline;text-decoration:underline;"
- assign a class="someclass" and use .someclass {border:none;background:transparent;padding:0;display:inline;text-decoration:underline} in your stylesheet.
- assign a id, similar to assigning a class.

-r-
SwapnilSoftware Architect
CERTIFIED EXPERT
Top Expert 2005

Commented:
Hi TomMonkey,

Try following

I assume that your background color of page is white. otherwise just change border color and background color of following style with your background color of page.

<input type="button" style="border-width:1px;border-style:solid:border-color:white;background-color:white" >

Regards,
NetSwap
Commented:
Hi,

or you can keep your hyperlinks and make them act like a button.

<a href="javascript:myForm.submit()">link</a>

or

<a href="javascript:myJsMethodThatSetsAParameterAndSubmitsAForm()">another link</a>

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.