VatsaL
11-25-2006, 03:27 PM
I'm using a calculator script inside a <span>, and it seems javascript:void(0); dosent work when inside the <span>, but it does when I remove the <span> and <div> tags. Here is the <span> code i'm using:
The CSS for <span>:
span.left {
position: absolute;
left: 0;
}
span.right {
position: absolute;
right: 0;
}
div.line {
position: relative;
text-align: center;
width: 100%;
}
The code I use on the page:
<div class="line">
<span class="left">
stuff on the left side
</span>
<span class="right">
stuff on the right side
</span>
</div>
and here is the calculator script I want to use, (by replacing "stuff on right side" in the <span class="right">
http://www.jtricks.com/javascript/forms/calculator.html
Clicking in the litttle calculator icon beside the form doesn't work, and the div with the calculator buttons dosen't open up if I place the whole thing inside the <span>..
The CSS for <span>:
span.left {
position: absolute;
left: 0;
}
span.right {
position: absolute;
right: 0;
}
div.line {
position: relative;
text-align: center;
width: 100%;
}
The code I use on the page:
<div class="line">
<span class="left">
stuff on the left side
</span>
<span class="right">
stuff on the right side
</span>
</div>
and here is the calculator script I want to use, (by replacing "stuff on right side" in the <span class="right">
http://www.jtricks.com/javascript/forms/calculator.html
Clicking in the litttle calculator icon beside the form doesn't work, and the div with the calculator buttons dosen't open up if I place the whole thing inside the <span>..