I'm working on creating a draggable list with canvas elements in each list item. I have a functional concept that you can view here: https://codepen.io/Todai/pen/zBmRVk
My main challenge is making it responsive. I have attempted adjusting the widths and heights like this:
#slider {
width: 100%;
height: auto;
overflow: hidden;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
canvas {
width: 100%;
height: auto;
}
However, these changes only result in the list becoming vertical and overlapping the second chart on top of the first one. What I actually want is to display the chart next to the first one.
I'm also puzzled as to why the second chart appears slightly higher than the first one; I cannot find any reason for this discrepancy in the .js code.
Any ideas or suggestions?
EDITS:
NOTE: Although the codepen may not adhere to coding standards, please remember that it serves as a proof of concept and not the final code!