Just have one question though. How do I set the style when using an image as a background with a specified width and height?
]]>I’ve updated the code in the post to be a lot shorter and you can use it for a class or id properly. View a demo here https://justjquery.com/lab/heighttest/
]]>