Can I make this look like a button and act like an a href ?

A

active

<a href="Register.aspx" class="button" id="Image1" runat="server" > "Create
a new account"</a>

Can I make this look like a button and act like an a href ?

I tried the above but it does not look like a button.

What does class="button" do?



Thanks



If this is the wrong NG please advise.
 
S

Scott M.

What does class="button" do?

Absolutely nothing, unless you have created a CSS class called "button" and
written rules into it that would make the object have a border and
background so as to appear as a button.
 
M

Mike Mueller

: : >> What does class="button" do?
: >
: > Absolutely nothing, unless you have created a CSS class
called "button"
: > and written rules into it that would make the object
have a border and
: > background so as to appear as a button.
: >
: : Thanks
: I'm looking at someone else's code so now I know what to
look for.

************************************************
Very easy to do

In the head section:
<style type="text/css>
..button a {background-color: gray; border: 1px black solid;
color: black; padding: 5px}
..button a:hover {background-color: white; border: 1px red
solid; color: red; padding 5px}
</style>

For the link:
<a class="button" href="whatever.com">Link Text</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,829
Latest member
PIXThurman

Latest Threads

Top