CSS Button Hyperlink


Author Message
jamesfed

Posted: 4/17/2010
Quote message 

Hi all,

Im trying to make a button act like a hyperlink (so when the user clicks the button they are directed to a webpage) however I just can't seem to get the code right.

I am using the css button genrator from - http://www.iwebtoolsonline.com/html-and-css-rounded-corner-button-generator

The images/css apply correctly when I use the code from the genrator I just need to know where to put the code for the hyperlink.

Thanks,
James
 
jamesfed

Posted: 4/17/2010
Quote message 

Scratch that last one! - found out I was missing a '

Code in the end was-

<button class="rounded" onclick="window.location='http://rosesvilla.recommendmeapc.co.uk/?page_id=9'">
<span>Gallery</span>
</button>
 
Garry

Posted: 4/19/2010
Quote message 

You can insert theme matching buttons as following:

<a class="art-button" href="www.yoursite.com">Text on button</a>