I would like to use a simple display cursor
as defined in my HTML code below.
It displays perfectly but I would like to be able to set the cursor position through a variable.
I have tried several options without success.
Any help would be very appreciated....
CSS:
var-rudpos:-60px;
.trPic {
width:400px;
height:15px;
no-repeat;
}
.trPic .port{
position:relative;
top:-0px;
left: 0px;
width:200px;
height:15px;
background:#ff0000;
opacity:1;
}
.trPic .starboard{
position:relative;
top:-0px;
left: 201px;
width:200px;
height:15px;
background:#41c921;
opacity:1;
}
.trPic .zero{
position:relative;
top:-2px;
left: -2px;
width:4px;
height:19px;
background:#0000ff;
opacity:1;
}
.trPic .cursor{
position:relative;
top:-2px
//left: var(rudpos);
left: -60px;
width:4px;
height:23px;
background:#000000;
opacity:1;
}
HTML:
<div class="trPic">
<div class="port">
<div class="starboard">
<div class="zero">
<div class="cursor"> </div>
</div>
</div>
</div>
</div>