I'm working on a tabpanel that dynamically generates an unknown number of tabs. To accommodate more tabs than the screen size can display, I've added navigation using the margin
style instead of fixed widths. However, I'm struggling to move one tab at a time when clicking the left/right arrow buttons as it currently moves by 20px
, which is not precise.
I feel like I might be overlooking something crucial, but I can't seem to pinpoint the issue. Can anyone offer assistance?
I'm open to any alternative solutions as well.
You can find the jsfiddle here.