I'm currently working on a WordPress mega menu with four columns, each with a heading or top menu item. The headings should have a gradient border at the bottom and differ in length. However, I'm facing an issue where some headings span two lines while others don't, and I can't seem to achieve the desired result.
This menu is generated by WordPress, so any changes to the HTML code would need to be implemented through a function or filter.
Here is the current basic code:
https://i.sstatic.net/COaF6.jpg
And here is the expected outcome:
...