Not the code I’m using, I just like to try and figure things out when there’s something wrong.
When you click on it, the left background overlaps the middle background. Why is this happening. Can anyone figure it out? https://jsfiddle.net/hm2skng7/21/
It overlaps 1px over to the right after you click on it.
<div style="width:266px;" onclick="myObject=document.getElementById('myObj5h');
myObject.style.display='block'; this.style.display='none'">
<div style="display:block; cursor: pointer; width: 89px; height:24px; background-color:#00ffff; border-top-left-radius:50px;border-bottom-left-radius:50px;margin: 0px 0px 0 0px;text-align:center">
</div>
<div style="display:block; cursor: pointer; width: 88px;height:24px;background-color:#ffffff;margin: -24px 0px 0 88px; ">
</div>
<div style="display:block; cursor: pointer; width: 89px; height:24px; background-color:#ff00ff; border-top-right-radius:50px;border-bottom-right-radius:50px; margin: -24px 0px 0 177px;text-align:center">
</div></div>
<div id="myObj5h" style="display: none;">
<div style="display:block;width: 89px; height:24px; background-color:#00ffff; border-top-left-radius:50px;border-bottom-left-radius:50px;margin: 0px 0px 0 0px;text-align:center">
<button style="cursor: pointer; font-family:Tahoma; font-weight: bold;font-size:14px; border:none;background-color:#00ffff;color:blue;padding: 0px 0px 0px 0px;"
onclick="document.getElementById('player').play()">Play</button>
</div>
<div style="display:block; width: 88px;height:24px; background-color:#ffffff;margin: -24px 0px 0 89px;text-align:center;">
<button style="cursor: pointer; background-color:#ffffff;color:blue;font-family:Tahoma; font-weight: bold;font-size:14px; border:none;padding: 0px 0px 0px 0px;"
onclick="document.getElementById('player').pause()">Pause</button>
</div>
<div style="display:block; width: 89px; height:24px; background-color:#ff00ff; border-top-right-radius:50px;border-bottom-right-radius:50px; margin: -24px 0px 0 177px;text-align:center;">
<button style="cursor: pointer; background-color:#ff00ff;border:none;color:blue;padding: 0px 0px 0px 0px;font-family:Tahoma ;font-weight: bold;font-size:14px; padding: 0px 0px 0px 0px;"
onclick="document.getElementById('player').pause() ;document.getElementById('player').currentTime=0;">Stop</button>
</div>
<audio id="player" style="display:none;">
<source src='http://air.radiorecord.ru:8101/rr_320' type='audio/mpeg'/>
</audio>
</div>