I'm looking to add a class to an element but only if the content requires the user to scroll.
The element in question responds to screen size, and so it will only require the user to scroll on smaller screen sizes. I'd like to add different styles to the element in that case only and not when the content fits without scrolling.
I'm unsure how to do this but I'm confident there will be a js/jquery solution out there somewhere!