Re: HTML button as hyperlink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux