You are here: Re: Making html button behave like hyperlink « HTML « IT news, forums, messages
Re: Making html button behave like hyperlink

Posted by Mark Parnell on 01/19/06 05:46

Deciding to do something for the good of humanity, WJ <wj@nospam.com>
spouted in alt.html:

> I am trying to make a button behave exactly like an href.

You've got it backwards. It *is* a link, so use the correct element
(<a>). Once you have done that, you can worry about what it looks like.
If you want it to look like a button, you can style the anchor
appropriately.

OTTOMH and not tested:

a:link {display: block; width: 8em; height: 1.5em; background-color:
#999999; border-top: 1px solid #CCCCCC; border-right: 1px solid #333333;
border-bottom: 1px solid #333333; border-left: 1px solid #CCCCCC;
text-decoration: none; color: #000000; cursor: default;}

> Users just want buttons instead of hyperlinks.

What makes you think that?

--
Mark Parnell
=====================================================
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация