Groups | Blog | Home
all groups > asp.net webcontrols > march 2007 >

asp.net webcontrols : Can I make this look like a button and act like an a href ?



active
3/29/2007 9:44:18 PM
<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.





Scott M.
3/29/2007 11:52:17 PM
[quoted text, click to view]

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.

active
3/30/2007 8:17:58 AM
Thanks
I'm looking at someone else's code so now I know what to look for.



[quoted text, click to view]

Mike Mueller
4/2/2007 3:45:02 PM
[quoted text, click to view]
: >> 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>


active
4/3/2007 9:50:12 AM
Thanks, I'll try that now


[quoted text, click to view]

AddThis Social Bookmark Button