Currently, I am in the process of creating a webpage for various items, and everything is going well so far. However, I have encountered an issue while attempting to vertically align the buttons that I am generating using JavaScript within the document.
I have experimented with multiple approaches, such as applying the display style: block; property extensively, but unfortunately, the buttons are not cooperating.
Although I managed to develop a function where the buttons were integrated into a list structure, they lost their button appearance in the process (even though they still retained functionality), prompting me to abandon that solution.
Oddly enough, JSFiddle does not display the buttons properly. Here is the code I am currently working with:
https://jsfiddle.net/jets29sy/8/
// JavaScript code goes here...
# CSS code goes here...
// HTML code goes here...
When previewing the page locally, everything seems to be displaying correctly except for one thing - the buttons are aligned horizontally instead of vertically. At this point, the positioning of the buttons container is not my immediate concern; rather, I am focused on finding a way to vertically align the buttons within the container using JavaScript, HTML or CSS.