Re: HTML button as hyperlink

From: Date: Thu, 18 Nov 2004 16:55:55 +0000
Subject: Re: HTML button as hyperlink
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-202446@lists.php.net to get a copy of this message
Chris Boget wrote:
My preference is CSS. Style your link to look like a button.
What would the CSS look like to do this, I'm curious...
For default Mozilla button: A.button { padding: 0px 6px 0px 6px; border-width: 2px; border-style: outset; border-color: ButtonFace; background-color: ButtonFace; color: ButtonText; cursor: default; white-space: pre; } A.button:active { border-style: inset; } <a href="http://www.php.net" class="button">PHP</a> I used system colors: http://www.w3.org/TR/CSS2/ui.html#system-colors

« previous php.general (#202446) next »