jQuery Syntax Error - Trying to detect viewport size and select background image to use w/CSS
- by CuppyCakes
Hi all. Please be gentle, I'm still learning. I imagine that the solution to my problem is simple and that perhaps I have just been in front of the computer too long.
I am trying to detect the size of the viewport, and then use a different sized image for a background on an element depending on the size of the viewport.
Here is what I have so…