View Full Version : Button with 2 different links

05-10-2007, 09:19 PM
Hello All,

I am new in web design so forgive me if I am asking something too simple. I need a single button with 2 separate links showing both at the same time. One link would say something like Visitor ID: 43DY2P where the underline part is clickable going to a particular link, and the other link would be below it saying Powered By ABC Corp where the underline part would go to a link. I saw some examples where it works one at a time, but I need to show both of the links at the same time, and it cannot be next to each other. It has to be in separate lines. I also do not want to use images.



05-10-2007, 09:26 PM
you could always use flash...so you want the two links seperate? like one link few spaces and then another link?

05-10-2007, 09:31 PM

It would be two hyperlinks in 2 separate lines but within 1 button. However both of those links will not be the same all the time, as those links would be generated by some back end system, and the data would be parsed from the back end system to the button. What I mean is the Visitor ID would be different for each visitor (visitor will be our end clients) and the Powered By ABC Corp (could go to different links, as if I brand out my system to resellers, than that link could either go to my website, or my resellers website)


05-11-2007, 05:34 AM
I'm sorry, but I cannot follow what you are saying. I don't see where the button comes in?

Could you provide some code showing what you currently have?

05-11-2007, 03:45 PM
Good morning avi1278,
I think this is close to what your talking about?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>one button - two links</title>
<style type="text/css">
* {
margin: 0;
padding: 0;
#navlist {
width: 130px;
height: 36px;
margin: 100px auto 0 auto;
border: 1px solid #f5d7b4;
#navlist ul a {
display: block;
#navlist li {
float: left;
width: 130px;
height: 18px;
list-style-type: none;
text-align: center;
background: #FAEBD7;
color: #CD8162;
font: 60% Lucida Grande, Lucida Sans Unicode, verdana, lucida, sans-serif;
#navlist li a {
float: left;
width: 130px;
height: 18px;
#navlist li a:hover {
color: #FFFFFF;
background: #DDA0DD;
#navlist a:active {
background: #c60;
color: #fff;
<ul id="navlist">
<li><a href="http://www.nopeople.com/">One button</a></li>
<li><a href="http://www.codingforums.com/showthread.php?t=113922"></a></li>