Recently, I was working on a Wordpress site and used the Ninja Forms plugin to create a form. One of the challenges I encountered was styling the file upload button. After some research, I came across a tutorial that provided a great solution that worked across different browsers:
Although I successfully styled the button as desired, I now face two issues:
a) When more than one file is selected, the file list overlaps with the content below.
b) I'm struggling to set 'MultiFile-wrap' to overflow:hidden without hiding the file list.
To address these problems, I am considering implementing one of the following solutions:
1. Find a way to move 'MultiFile-list' out of its parent element (MultiFile-wrap) in the DOM, potentially using jQuery.
or
2. Use jQuery to count the number of items currently in the list and adjust the margin of the content below accordingly.
I am unsure which approach would be more effective. At the moment, I am leaning towards the second option...