Hi
I am trying to create a link that has several span tags to represent the background-image of the left mid and right so that expands or retracts depending on the text in the image.
The problem I have is that the most inner span that has the image does not link to the next page, but if you move the mouse to say the top or the left right it clicks to the next page. Obviously firefox goes to the next page when any part of the region is clicked
the css
.ActionBtn{
float:right;
display:block;
width:auto;
margin:10px 25px 0 0;
cursorointer;
}
.ActionBtn .MidBtn .BtnLabel
{
position:relative;
top:3px;
padding:0 3px 0 3px;
}
.ActionBtn span{float:left;}
.ActionBtn .MidBtn
{
background-image:url(../media/mid_off.png);
background-repeat:repeat-x;
width:auto;
height:20px;
color:#fff;
line-height:2;
font-weight:bold;
text-transform:uppercase;
font-size:0.8em;
}
.ActionBtn .LeftBtnEdge{
width:5px;
height:20px;
background-image:url(../media/grad_left_off.png);
background-repeat:no-repeat;
}
.ActionBtn .RightBtnEdge{
width:5px;
height:20px;
background-image:url(../media/grad_right_off.png);
background-repeat:no-repeat;
}
.ActionBtn:hover .RightBtnEdge
{
background-image:url(../media/grad_right_on.png);
}
.ActionBtn:hover .LeftBtnEdge{
background-image:url(../media/grad_left_on.png);
}
.ActionBtn:hover .MidBtn
{
background-image:url(../media/mid_on.png);
background-repeat:repeat-x;
}
HTML
<a class="ActionBtn" href="#">
<span class="LeftBtnEdge"><!-- --></span>
<span class="MidBtn" id="btnSubmitForm">
<span class="BtnLabel"><img style="border-width: 0px;" src="/sony/GT5/media/b/0731474176.png"/></span></span>
<span class="RightBtnEdge"><!-- --></span>
</a>
Is there something I am doing
I am trying to create a link that has several span tags to represent the background-image of the left mid and right so that expands or retracts depending on the text in the image.
The problem I have is that the most inner span that has the image does not link to the next page, but if you move the mouse to say the top or the left right it clicks to the next page. Obviously firefox goes to the next page when any part of the region is clicked
the css
.ActionBtn{
float:right;
display:block;
width:auto;
margin:10px 25px 0 0;
cursorointer;
}
.ActionBtn .MidBtn .BtnLabel
{
position:relative;
top:3px;
padding:0 3px 0 3px;
}
.ActionBtn span{float:left;}
.ActionBtn .MidBtn
{
background-image:url(../media/mid_off.png);
background-repeat:repeat-x;
width:auto;
height:20px;
color:#fff;
line-height:2;
font-weight:bold;
text-transform:uppercase;
font-size:0.8em;
}
.ActionBtn .LeftBtnEdge{
width:5px;
height:20px;
background-image:url(../media/grad_left_off.png);
background-repeat:no-repeat;
}
.ActionBtn .RightBtnEdge{
width:5px;
height:20px;
background-image:url(../media/grad_right_off.png);
background-repeat:no-repeat;
}
.ActionBtn:hover .RightBtnEdge
{
background-image:url(../media/grad_right_on.png);
}
.ActionBtn:hover .LeftBtnEdge{
background-image:url(../media/grad_left_on.png);
}
.ActionBtn:hover .MidBtn
{
background-image:url(../media/mid_on.png);
background-repeat:repeat-x;
}
HTML
<a class="ActionBtn" href="#">
<span class="LeftBtnEdge"><!-- --></span>
<span class="MidBtn" id="btnSubmitForm">
<span class="BtnLabel"><img style="border-width: 0px;" src="/sony/GT5/media/b/0731474176.png"/></span></span>
<span class="RightBtnEdge"><!-- --></span>
</a>
Is there something I am doing