Saturday, May 4, 2024
HomeCSSjavascript - Horizontal scroll bar doesn't maintain

javascript – Horizontal scroll bar doesn’t maintain


I’ve a desk wrapped inside a div wrapper with overflow-x:auto.

echo "<div type="show: block; white-space: nowrap; overflow-x: auto; ">";
echo "<desk type="background-color: black; coloration: white; ">";
echo "<tr>";
$nb=0;
whereas ($nb<=$mb-1)
{
echo "<td>";
echo $bets[$nb]."nbsp;".$odds[$nb];
echo "</td>";
$nb=$nb+1;
}
echo "</tr>";
echo "</desk>";
echo "</div>";

The overflow-x:auto setting works effective and a horizontal scroll bar is displayed. Nonetheless, scrolling to the precise to disclose the overflow doesn’t maintain. The slider routinely returns to the left. I’ll recognize any assistance on this. When the slider is moved to the precise it ought to keep so one can view the overflowed content material. Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments